How to wait until page freezes - when auto scrolling is finished?

492 views
Skip to first unread message

Ilja Pavlovs

unread,
Dec 31, 2014, 2:51:35 PM12/31/14
to seleniu...@googlegroups.com
We have got following logic on frontend - so when new page is loaded, screen is auto scrolling to specific section and I have a script which clicks on the specific element at that time.  Hence, while this movement is occurring following error is appearing due to the fact that selenium is clicking on wrong element:
"Element is not clickable at point (x, y). Other element would receive the click..." 

I have added plain sleep, but this solution is not a good one. So does any one know how to wait until page freezes - when auto scrolling is finished?

Selenium Framework

unread,
Jan 2, 2015, 11:06:32 AM1/2/15
to seleniu...@googlegroups.com
Is there a javascript function that does autoScroll? Maybe wait until that javascript function returns or becomes some value. 
Some snchronization mechanisms for ajax waits is here , however javascript world is too big these days to synchronize the asynchronous events.

Reply all
Reply to author
Forward
0 new messages