question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Keyword to execute 2+ browser keywords in parallel

See original GitHub issue

Is your feature request related to a problem? Please describe. Sometimes we would have a use case to find out whether or not a network request is sent to the server after clicking a button. To do this we would use playwright’s waitForRequest method and we may write the RBFW script like this. My assumption that we will implement Wait For Request keyword.

Click       #button
Wait For Request    xxx  xxxx

However the requests aren’t captured consistently. On multiple occasions the command times out which results in a failed test. That is because the request is finished before waitForRequest was called.

Describe the solution you’d like Have a keyword to execute 2 keywords in parallel e.g.

Run Async Keywords           Click       #button     AND    Wait For Request    xxx  xxxx

Describe alternatives you’ve considered I have no idea at the moment.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:19 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
xylixcommented, Jul 27, 2020

I’ll just close this issue off then, let’s create new issues for future needs related to this.

2reactions
xylixcommented, Jul 24, 2020

After merging #158 we now have Wait For Request and Wait For Response keywords. For example use see https://github.com/MarketSquare/robotframework-browser/blob/master/atest/test/03_Waiting/wait_for_http.robot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser - MarketSquare
The Open Browser keyword opens a new browser, a new context and a new page. ... This can speed execution when running tests...
Read more >
TestNG Parallel Execution - How to run Selenium tests in ...
Parallel test execution in TestNG triggers with the help of keyword "parallel". In this variable, we can assign any of the four values...
Read more >
Robot Framework User Guide
Quick Start Guide: Introduces the most important features of Robot Framework ... Keywords *** My Keyword [Arguments] ${path} Directory Should Exist ${path}.
Read more >
Robot Framework - Cross browser testing - Stack Overflow
The keyword Open Browser has as an argument the browser name; so in one run you will pass "Chrome", then in the following...
Read more >
2.8 Advanced features · Robot-Framework-cn&en-User ...
2.8 Advanced features · 2.8.1 Handling keywords with same names · 2.8.2 Timeouts · 2.8.3 For loops · 2.8.4 Conditional execution · 2.8.5...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found