userpal
userpal

Reputation: 1523

How to implement "click and don't wait for page reload" in Selenium2Library in Robot Framework?

I am using Selenium2Library in Robot Framework. I want to click a link in a webpage but I don't want to wait for the page to reload.

When using SeleniumLibrary in Robot Framework, user can use this command:

| Click Link |  link text    |                      # A page is expected to load.
| Click Link |  another link |  don't wait |        # A page is not expected to load.

But I could not find the equivalent command in Selenium2Library.

How to implement "click and don't wait for page reload" in Selenium2Library in Robot Framework?

Upvotes: 0

Views: 1993

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386210

You might try using the Simulate keyword to simulate a click on the element, rather than calling one of the click keywords. Looking through the code, I can't see where it does any sort of wait after doing the simulated event. You could also try writing your own keyword that calls Mouse Down followed by Mouse Up.

Upvotes: 1

Related Questions