how can i click the red button here from Host A (in this example jsfiddle.net) using selenium python? (java script limitation policy error do not let me to do it). also i do not want to click directly Red Button. thanks.
el =driver.find_element_by_xpath("/html/body/div2/input")
webdriver.ActionChains(driver).move_to_element(el).click(el).perform()
iframe that keeps red button:
<iframe src="http://www.myhostb.blogfa.com/" width="500" height="300">
</iframe>
important note: imaging that jsfiddle.net is Host A.
You need to use
switch_to_frame()
Once you're done in the
iframe
, you can switch back to the top frame using: