How to ScrollIntoView inside a UL Element That Has a Scroll Bar?

zenfreak

Client
Регистрация
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:

Код:
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();
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
you need to ahve teh x and y elements inside second box with focus in there... i dont see it capturing that second window....
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
Код:
he.Focus();
Doesn't seem to have any effect either ...
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
give me a test url to play with let me try a few things
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18

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