0

I need to click "OK" on a pop up to sign in to costar.com.

When the frame pops up, it freezes the rest of the window and does't allow me to look at developer tools to see the elements.

After looking at the source code, I found that it is an invisible frame.

If you want to see for yourself: -go to costar.com -click login -click login button

You will see the type of invisible frame I'm talking about. Using chrome to search the source code, you can find the invisible frame information searching for "invisible" or "certificate".

Is it possible to interact with that frame?

Thank you for your help.

Gus Gabel
  • 147
  • 2
  • 2
  • 9
  • i guess you need http://stackoverflow.com/questions/18366689/how-to-select-a-frame-using-selenium – comalex3 Jul 14 '15 at 16:09
  • I'm not seeing any popup.Are you talking about the alert when no credentials were given. – Madhan Jul 14 '15 at 17:27
  • @Madhan yes that alert. It is the same style of alert that pops up when I plug in the correct credentials, except it gives me the option to click "OK". – Gus Gabel Jul 14 '15 at 17:51
  • how would you interact with the alert when no credentials were given? – Gus Gabel Jul 14 '15 at 17:55

2 Answers2

0

What you are getting is alert

You have to switch to the alert and accept it

alert = driver.switch_to_alert()
alert.accept()
Community
  • 1
  • 1
Madhan
  • 5,750
  • 4
  • 28
  • 61
  • I tried that, but nothing happened. The alert is invisible, so I can't figure out how to switch to it. (selenium can't see that it's there) – Gus Gabel Jul 14 '15 at 18:54
0

Try also:

driver.switch_to_frame("frame")

or something like this

driver.switch_to_window(driver.window_handles[-1])
mmichalik
  • 64
  • 1
  • 6
  • For some reason, nothing seems to work. It seems like selenium can't detect that there's a partial stop in the ajax before opening the new page. The alert causes the entire frame to freeze, which stops me from being able to inspect the elements. It also times out when searching for frames or windows. – Gus Gabel Jul 20 '15 at 20:58
  • It looks like their web is blocking webdriver techniques "on purpose". Depending on your needs, there may be better approach, e.g. jmeter, working on http (transfer) layer. – mmichalik Jul 22 '15 at 06:21