Problem with clicking "Vote Up" button on YT

szpakseo

Client
Регистрация
16.04.2013
Сообщения
3
Благодарностей
0
Баллы
0
Hi,
Like the title says I've got a problem - how to click the "vote-up" button only for comments that belong to me. This action allow me to take the whole mine comment but what can I do with it?
ktzR45U.png
Also i tried to do something like that
PHP:
	Tab tab = instance.ActiveTab;
	if (tab.IsBusy) tab.WaitDownloading();
	HtmlElement he = tab.FindElementById("comments-view");
	HtmlElement comment = he.FindChildrenByAttribute("li", "data-id", project.Variables["commentId"].Value, "text").FindChildrenByAttribute("button", "data-action", "vote-up", "text");
	comment.Click();
But it returns an error while I try to debug template. Can someone help me? I need to finish this asap.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Код:
HtmlElement comment = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("li", "data-id", project.Variables["dataId"].Value , "text", 0);
HtmlElement button = comment.FindChildByAttribute("button", "class", "comment-action-vote-up", "text", 0);
button.Click();
 
  • Спасибо
Реакции: szpakseo

szpakseo

Client
Регистрация
16.04.2013
Сообщения
3
Благодарностей
0
Баллы
0
Great, I'm really appreciate for that.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)