scroll until the element is in view using Selenium2Library Keyword
Finally I got the solution to my query. I have to download the ExtendedSelenium2Library from : Github_Page
then I installed it and it is working fine now.
Thanks.
ExtendedSelenium2Library solved the problem of scrolling down and selecting an element. I used the keyword 'Scroll Element Into View' for my application. However the ExtendedSelenium2Library will not work with the higher versions of the selenium2library.
Below is my 'pip freeze' command output which is working
robotframework==3.0.2robotframework-extendedselenium2library==0.9.1robotframework-selenium2library==1.8.0robotframework-seleniumlibrary==2.9.2selenium==3.8.0urllib3==1.22
I was stuck at similar blockade and i could resolve as below:Hope this might be of little help!
Use ExtendedSelenium2Library Library...
Example:
***Settings***Library ExtendedSelenium2Library*** Keywords ****Add Your Methods #Execute Javascript window.scrollTo(0,200); Scroll Element Into View ${YourElement} Wait Until Element is visible ${YourElement} timeout=5s Set Focus To Element ${YourElement} Click Element ${YourElement}