Skip to content
Create a gist now

Instantly share code, notes, and snippets.

from selenium import webdriver as w
d = w.Remote("http://localhost:3001/wd/hub", w.DesiredCapabilities.IPHONE)
d.get("http://seleniumhq.wordpress.com/")
f = d.find_element_by_css_selector("iframe[src^='https://plusone.google.com']")
d.switch_to_frame(f)
print d.page_source
print d.find_element_by_tag_name("div")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.