karatelabs / karate Public
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
driver.url still reporting URL of original tab after using switchPage #1606
Comments
|
@nathanchilton should be simple to fix, but tagging as help wanted, trying to boost contributions. a workaround could be to do |
|
@ptrthomas Thank you for your prompt response! I tried |
|
@nathanchilton okay, we'll look at it, and hope someone picks it up sooner |
|
Thank you, @ptrthomas! |
|
@nathanchilton it should be fixed. it would be great if you can build from source as I tried to make some fundamental improvements. and note that |
|
@ptrthomas I just confirmed that this is fixed in |
|
@nathanchilton Could you please provide details of your POM file as I am facing similar too issue..I havent updated to a latest version before and I am unable to do so..Would be of much help if I know what I am doing wrong. |
@janmenezes28, I'm sorry to be so late to reply to your comment. I learned Java back in the late 90s, before the magic of Maven, and I haven't dedicated the time to learning it yet. I actually have filed an issue in my backlog to move to using Maven to manage dependencies. Currently, I am using the stand-alone executable ( |
|
@nathanchilton Thank you for the response and yes I am able to proceed after switching to a newer version.. |
|
1.1.0 released |
|
switchpage is still not working even after the 1.1.0 fix . I also validated the same with the older versions 1.1.0.RC4,RC3,RC2 and latest version 1.2.0.RC1 none of them seems working ! Below is the sample script , even after the switchpage statement it return the url of the original tab and none of the element being identified from the new tab ! Script Console Log: 15:26:36.385 [pool-1-thread-1] INFO com.intuit.karate - [print] driver.url before switch---------------- https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open |
|
@subra86 please contribute code ! or for now at lease follow this process and open a new issue: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue |



We have a workflow in our web app which opens in a second tab. We had a test which was able to verify the correct behavior.
This test was working with Karate version 0.9.6. We have since upgraded to version 1.0.1 and this test is now failing. Visually, I can see the browser switch between tabs, but driver.url is still reporting the URL of the original tab.
I put together a simple demonstration of the problem, which does not use our website. This test passes with Karate version
0.9.6, but fails with version1.0.1.The text was updated successfully, but these errors were encountered: