You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue with the recorder not being able to change focus to a popup window .
I've included a simple html file that opens a new window,"MsgWindow", when a button is clicked.
My Selenium builder testcase is a follows:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Selenium Test</title>
</head>
<body>
<p>Click the button to create a window and then display the name of the new window.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var myWindow = window.open("", "MsgWindow", "width=200, height=400");
myWindow.document.write("<p>This window's name is: " + myWindow.name + "</p>");
myWindow.document.write("<form action=\"action_page.php\">");
myWindow.document.write("First name:<br>");
myWindow.document.write("<input type=\"text\" name=\"firstname\" value=\"Mickey\">");
myWindow.document.write("<br>");
myWindow.document.write("Last name:<br>");
myWindow.document.write("<input type=\"text\" name=\"lastname\" value=\"Mouse\">");
myWindow.document.write("<br><br>");
myWindow.document.write("<input type=\"submit\" value=\"Submit\">");
myWindow.document.write("</form> ");
}
</script>
</body>
</html>
I am using
FF 41.0.1 ,Selenium Builder 2.3.5 and running a local test.
After the switchToWindow function is called , I attempt to record a new step below and recorder does not switch focus to the popup window.
I've included the Selenium builder testcase as well as the html document that is being tested.
Any help will be appreciated.
Thanks
Anesh
The text was updated successfully, but these errors were encountered:
I am having an issue with the recorder not being able to change focus to a popup window .
I've included a simple html file that opens a new window,"MsgWindow", when a button is clicked.
My Selenium builder testcase is a follows:
Html Document:
I am using
FF 41.0.1 ,Selenium Builder 2.3.5 and running a local test.
After the switchToWindow function is called , I attempt to record a new step below and recorder does not switch focus to the popup window.
I've included the Selenium builder testcase as well as the html document that is being tested.
Any help will be appreciated.
Thanks
Anesh
The text was updated successfully, but these errors were encountered: