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.

Timeout argument on 'New Browser'

See original GitHub issue

Describe the bug The timeout argument of the New Browser keyword seems to be broken.

To Reproduce Steps to reproduce the behavior:

  1. Execute this line of code:
    New Browser    browser=chromium    headless=False    timeout=0s
    
  2. Error is thrown
  3. Variants like timeout=0 do 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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aaltatcommented, Jun 6, 2022

@allcontributors please add @vinismarques for bugs.

0reactions
aaltatcommented, Jun 14, 2022

Fixed in #2108

Read more comments on GitHub >

github_iconTop 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 >

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