This question already has an answer here:
I'm trying to create some simple textcases with Selenium IDE which works quite well so far. There's a problem with recording testcases which include a Javascript alert since Selenium doesn't support those pop-ups. So I tried to use a workaround by clicking just the Enter button when I know that the pop-up is visible.
Let's say that the alert always appears when I'm browsing to one of my html pages. You need to click OK and then you can continue browsing.
I tried to create a testcase with the command "keyPress". But I have absolutely no idea which target to use because there's no element I'm using in this case, I just want to press Enter.
Can anybody help me?