Timeout argument on 'New Browser'
See original GitHub issueDescribe the bug
The timeout argument of the New Browser keyword seems to be broken.
To Reproduce Steps to reproduce the behavior:
- Execute this line of code:
New Browser browser=chromium headless=False timeout=0s - Error is thrown
- Variants like
timeout=0do not work as well
Expected behavior Error is thrown:
Error: browserType.launch: timeout: expected number, got string [[-]](vscode-webview://1v30vc43hfdiemc74gulcl3244gg5isefsrn8nq2vlc7lvvmpsv6/index.html?id=11fd3aa1-5851-4930-9eb6-d1c68c79cbb2&swVersion=4&extensionId=robocorp.robotframework-lsp&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app#)
Traceback (most recent call last):
File "c:\Users\vinic\.vscode\extensions\robocorp.robotframework-lsp-0.47.2\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 375, in evaluate
return self._evaluate(code)
File "c:\Users\vinic\.vscode\extensions\robocorp.robotframework-lsp-0.47.2\src\robotframework_ls\vendored\robotframework_interactive\interpreter.py", line 482, in _evaluate
facade.run_test_body(context, test)
File "c:\Users\vinic\.vscode\extensions\robocorp.robotframework-lsp-0.47.2\src\robotframework_ls\vendored\robotframework_interactive\robotfacade.py", line 67, in run_test_body
BodyRunner(context, templated=False).run(test.body)
File "C:\Users\vinic\AppData\Local\robocorp\holotree\b1f3c244e_6cd60f16\lib\site-packages\robot\running\bodyrunner.py", line 61, in run
raise ExecutionFailures(errors)
robot.errors.ExecutionFailures: Error: browserType.launch: timeout: expected number, got string
Desktop (please complete the following information):
- OS: Windows
- Browser: Chromium
- robotframework-browser==13.0.0
- rpaframework==14.2.0
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Fix the Browser Time-Out Problem - KidsGardening
Most web browsers seem have a “time-out” or “keep-alive” parameter of a few minutes. This means that if there is no network traffic...
Read more >Timeout::Error after new browser window opens - Stack Overflow
I do not see anything strange in any browser window. The new window opens pretty quickly. I am not sure why I got...
Read more >Add timeout parameter in launch browser actions
Timeout is the time span that Power Automate Desktop waits for a browser to be launched and assume control.
Read more >setTimeout() - Web APIs - MDN Web Docs
The global setTimeout() method sets a timer which executes a function or specified piece of code once the timer expires.
Read more >Browser - MarketSquare
Run New Browser with specified arguments if a browser with a GUI is requested ... Assert will retry and fail only after a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@allcontributors please add @vinismarques for bugs.
Fixed in #2108