title: driver.switchTo().Alerts() in selenium webdriver using java NOT working in IE11 when executed in perfecto
body: <p>I will let you know the exact scenario of the issue that I am facing right now while working on IE 11 browser in Win 10 using Perfecto.</p>
  
  <p>Scenario: A webpage has a frame and that frame inturn has a table consisting of lot of data. One such data happens to be a "Delete" link and upon clicking it, I get a pop up of "Are you sure?" with Yes or No buttons.</p>
  
  <pre><code>driver.switchTo().frame(frameID);
  </code></pre>
  
  <p>Challenge: <code>driver.switchTo().Alert()</code> is not working in Windows 10 - IE11 browser in Perfecto where as it works in CHrome browser of same OS combinations:</p>
  
  <p>Solutions Tried:
  1) 
  <code>((JavaScriptExecutor)driver).executeScript("window.confirm=function(){return true;}");</code></p>
  
  <p>and many such trail and error methods in javaScriptExecutor.</p>
  
  <p>Error faced: Since "driver" instance is inside Frame, when we execute window.confirm or window.alert, I am facing NullPointerException.</p>
  
  <p>2) Using Robot class for blind ENTER key.</p>
  
  <pre><code>Robot rb = new Robot();
  rb.delay(2000);
  rb.pressKey(KeyEvent.VK_ENTER);
  rb.releaseKey(KeyEvent.VK_ENTER);
  </code></pre>
  
  <p>Error Faced: Doesn't work. Pop up stays right there.</p>
  
  <p>3) <code>driver.switchTo().defaultContent()</code> </p>
  
  <p>Error faced - closes the pop up and control goes to the webpage without deleting the record which is not the functionality.</p>
  
  <p>4) <code>driver.switchTo().ActiveElement()</code> </p>
  
  <p>Error faced:  throws WebDriverException.</p>
  
  <p>Please help in providing a solution.<a href="https://i.stack.imgur.com/J4djP.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>NOTE: Same piece of code works in chrome browser. Issue is with IE11 when run in Perfecto.</p>