public
Created

  • Download Gist
sj_meetup_demo5.py
Python
1 2 3 4 5 6 7 8 9 10 11 12
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")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.