2

Possible Duplicate:
Python Selenium (waiting for frame, element lookups)

I have these includes:

from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys

Browser set up via

browser = webdriver.Firefox() 
browser.get(loginURL)

However sometimes I do

browser.switch_to_frame("nameofframe")

And it won't work (sometimes it does, sometimes it doesn't). Any way to force it to wait until it detects the frame?

Community
  • 1
  • 1
John Smith
  • 11,678
  • 17
  • 46
  • 51

0 Answers0