- Регистрация
- 21.08.2013
- Сообщения
- 249
- Благодарностей
- 12
- Баллы
- 18
I need to be able to scroll down to see and click the comments that are not shown.
Let's take this example:
If I'm using the MouseWheel, ScrollIntoView or even the MouseMove methods - it will scroll the whole page and not only inside the comments tab as I want to. Any ideas on what approach should I choose?
This is what I'm currently using:
Let's take this example:
If I'm using the MouseWheel, ScrollIntoView or even the MouseMove methods - it will scroll the whole page and not only inside the comments tab as I want to. Any ideas on what approach should I choose?
This is what I'm currently using:
Код:
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("div", "class", buttClass.Value, "text", 5);
string leftPlusButt = he.GetAttribute("leftinbrowser");
string topPlusButt = he.GetAttribute("topinbrowser");
int xButt = Int32.Parse(leftPlusButt);
int yButt = Int32.Parse(topPlusButt);
instance.ActiveTab.MouseWheel(xButt, yButt, 0, yButt+150, false);
he.ScrollIntoView();