May be you are right Luke Inmam.....
But In My case i am getting an "org.openqa.selenium.UnhandledAlertException: Modal dialog present
This box is containing an "Ok" button . I have to click on this "ok" button to get back to my parent window.
This pop up goes away only by clicking "ok" button or by pressing "enter" or "Escape" key from keyboard.
When I try to Right Click on this "ok" no options are displayed to get its Xpath, CSS, Id etc. So there is not way to get the location of "Ok" button.
this pop can be gone by clciking "Enter" key or "ESC" from keyboard.
So In element.sendKeys(Keys.ESCAPE)
there is not way to get the Location of Webelement.
Can it done by just clicking the "Esc" key from keyboard
On Thursday, 9 February 2012 23:19:57 UTC+5:30, Luke Inman-Semerau wrote:
element.sendKeys(Keys.ESCAPE)
Hi all,
Can anyone tell me how to press Esc key in selenium using webdriver.
I have used selenium.Keypressnative("27"), it works fine in selenium 1
but not in webdriver. i am using Webdriverbackedselenium in my code.
But still it is not working.
It would be very needful if i get reply..
Thanks in advance,
Kamal...
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.