[🐛 Bug]: execution got stuck for hours Thread [Forwarding getWindowHandles on session d2bae387ae17d6ad28e3c0f2ca3f9035 to remote] (Stepping) #14422
Labels
I-question
Applied to questions. Issues should be closed and send the user to community resources.
What happened?
In a new window, there's an alert and if I do anything on the parent window then the new window will close immediately, so to counter this, I tried to switch to its default content frame then tried to switch to the new window and I am getting two windows but not able to switch it. It is getting stuck for hours in the below line bold line.
@SuppressWarnings({"unchecked"})
public Set getWindowHandles() {
Response response = execute(DriverCommand.GET_WINDOW_HANDLES);
Object value = response.getValue();
try {
List returnedValues = (List) value;
return new LinkedHashSet<>(returnedValues);
} catch (ClassCastException ex) {
throw new WebDriverException(
"Returned value cannot be converted to List: " + value, ex);
}
}
How can we reproduce the issue?
Relevant log output
Operating System
Win:11
Selenium version
JAVA:1.8
What are the browser(s) and version(s) where you see this issue?
Edge
What are the browser driver(s) and version(s) where you see this issue?
edge
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: