Closed zhuyuemings closed 1 year ago
@zhuyuemings, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
I'm pretty sure this is fixed in 4.12. Really hoping we can get that released soon to address all of these. :)
There wasn't anything done in 4.12 for this. To be more precise, this is a known limitation: https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/ie-mode?tabs=c-sharp#opening-new-windows.
I will close this because Microsoft documents the workaround.
There wasn't anything done in 4.12 for this. To be more precise, this is a known limitation: https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/ie-mode?tabs=c-sharp#opening-new-windows.
I will close this because Microsoft documents the workaround.
how do i store a copy of the tab's window handle? not driver.getWindowHandle()
returned?
When using Microsoft Edge in IE mode, if your test switches focus away from a certain tab and you would like to be able to switch back to that tab later, you must store a copy of the tab's window handle.
In a variable. If you have more questions, I will leave some links below.
๐ฌ Please ask questions at:
In a variable. If you have more questions, I will leave some links below.
but i already stored, but switchToWindow
failed, any thing wrong with my code?
driver.get("https://www.baidu.com");
// stored
String windowId = driver.getWindowHandle();
driver.switchTo().newWindow(WindowType.TAB);
driver.get("https://lizhi.shop");
// switchToWindow failed
driver.switchTo().window(windowId);
String title = driver.getTitle();
i dont think this is a known limitation, @titusfortner do you think so?
Did you check the code samples in the Microsoft documentation?
Did you check the code samples in the Microsoft documentation?
sorry, i didn't find any samples code in Microsoft documentation,
the question is i use selenium-java and selenium's IEDriverServer, how do i use any other code?
If you open the URL I shared above
You will see this:
If you open the URL I shared above
You will see this:
i read this, but this is not the problem i meet. the return value of driver.getWindowHandles()
is correct, and i already switch success. the problem is i got the title from Tab1, but the browser is still displays Tab2.
could you please read my issue again?
Then I advise to report this to Microsoft.
Hi, @zhuyuemings. This issue has been determined to require fixes in MSEdgeDriver or in the IE Mode in Edge.
You can see if the feature is passing in the Web Platform Tests.
If it is something new, please create an Issue with the MSEdgeDriver team.
Feel free to comment the issues that you raise back in this issue. Thank you.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What happened?
I use selenium-java 4.11.0 and 32 bit Windows IE Driver: IEDriverServer_Win32_4.11.0.zip
I created 2 Tabs with Edge in IE-mode: Tab1, Tab2
when i opened Tab2, and tried to switch to Tab1()
i got the title from Tab1, but the browser is still displays Tab2.
and i can not find any wrong in driver log.
How can we reproduce the issue?
Operating System
Windows 10
Selenium version
Java 4.11.0
What are the browser(s) and version(s) where you see this issue?
Edge 116.0.1938.54, IE 11
What are the browser driver(s) and version(s) where you see this issue?
IEDriverServer_Win32_4.11.0
Are you using Selenium Grid?
No