Robot selenium2library how to configure the expectation of items around the world

I would like to ask if there is an option in the robot (using selenium2library) to set some implicit expectation of ALL elements that should be located only in one place during the test? I am currently putting an EACH pending element in my keywords (which doesn’t look so good)

Wait Until Element Is Visible ${repeated for each element} 

The external interface is made in Angular. I found that this could be the cause of trouble, and I also found several extended selenium2library, BUT I cannot use this extended library because I can only use the officially supported library (which is now only selenium2library) ...

I also tried setting waitcit wait and timeout when importing the library, but it doesn't seem to help (if I comment that mine is β€œwaiting” before each element, it starts crashing again)

 Library Selenium2Library 10 15 

Any suggestion? Do I really have to wait for each item in this case?

thanks

+5
source share
1 answer

I don't know if there is a better approach, but you can try to slow down selenium with Set Selenium Speed :

 Set Selenium Speed 0.5 seconds 

http://robotframework.org/Selenium2Library/Selenium2Library.html#Set%20Selenium%20Speed

+2
source

Source: https://habr.com/ru/post/1259844/


All Articles