views:

304

answers:

2

Hello,

I'm new to the testing world, so my question might seem a lil' bit too naive and stupid. At risk of looking/sounding stupid, my question is this:

i've been trying to test the contents in a pop up window on my company's webapp. i've figured out how to detect the pop up window for now, but i can't get selenium to 'click' on the link inside of that pop up window. there are multiple pop-ups in this webapp so it's really difficult for a newbie like to create a test case.

i tried the click, clickAndWait, mouseDown and mouseKey as an option but it is still not working. can somebody guide me through this?

TIA, Angela

A: 

Perhaps you can try the FireFox Plugin. You can click through your application and record your steps. After recording the steps you can easily save it as some sort of file or unittest.

I'm not sure about the command you should use for the popups, maybe the firefox plugin will help in this manner (it will create your commands).

Robert Cabri
+2  A: 

When the popup appears you will need to move the context of the script over to the window.

You can do this by using the selectWindow | window_ID_from_the_link and then do the clicking.

If that doesn't work you may need to use the openWindow command to create the popup and then start testing against that.

AutomatedTester