Scroll through the list until the item appears using Selenium2Library Keyword

I am using Robot Framework to do web application automation. I found one such solution using Selenium web driver.

scroll through the list until the item appears using Selenium Webdriver

But I wanted to accomplish this using Robotframewrok-Selenium2Library.

Please suggest such a keyword, if any.

Thank.

+3


source to share


3 answers


Finally I got a solution for my request. I need to download ExtendedSelenium2Library from: Github_Page

then i installed it and now it works fine.



Thank.

+2


source


ExtendedSelenium2Library solved the issue of scrolling and selecting an item. I used the "Scroll Element Into View" keyword for my application. However, ExtendedSelenium2Library will not work with higher versions of selenium2library.

Below is my "pip freeze" command output which works



robotframework==3.0.2
robotframework-extendedselenium2library==0.9.1
robotframework-selenium2library==1.8.0
robotframework-seleniumlibrary==2.9.2
selenium==3.8.0
urllib3==1.22

      

+1


source


I was stuck with a blockage like this and I could solve as below: Hopefully it doesn't help much!

Use ExtendedSelenium2Library ...

Example:

***Settings***
Library            ExtendedSelenium2Library

*** Keywords ****

Add Freedom Restriction EvaluatieData
    #Execute Javascript    window.scrollTo(0,200);
    Scroll Element Into View    ${EvaluatieTab}
    Wait Until Element is visible    ${EvaluatieTab}     timeout=5s
    Set Focus To Element    ${EvaluatieTab}    
    Click Element    ${EvaluatieTab}

      

0


source







All Articles