Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openWindow with selenium-html-runner-3.5.0 fails if target is a variable containing a URL #4540

Closed
wedwards99 opened this issue Aug 22, 2017 · 0 comments

Comments

@wedwards99
Copy link

Meta -

OS: Windows 10
Selenium Version: Html Runner-3.5.0
Browser: Firefox
Browser Version: 55.0.2 (64-bit)

Expected Behavior -

New tab or window opened with target URL

Actual Behavior -

HTML Runner prepends the base URL to the target URL resulting in a URL like http://localhost:8082/http://localhost:8082/somplace

Steps to reproduce -

Store a URL in a variable, and use the variable as the openWindow target e.g.

storeAttribute css=#118 > a@href targetURL
openWindow ${targetURL} targetWinId

This works fine except when run from HTML Runner, i.e. works when run from SeleniumIDE and as a JUnit test. Just a brief look at org.openqa.selenium.server.htmlrunner.CoreTestCase suggested that the case where value maybe a variable is not handled.

This is the command line I am using:

java -Dwebdriver.gecko.driver=../geckodriver-v0.18.0-win64/geckodriver.exe -jar selenium-html-runner-3.5.0.jar -htmlSuite "*firefox" "http://localhost:8082" OpenWindowTestSuite.html logs
@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants