javascript - How to locate the element using selenium python in the HTML below -
i'm trying automatic test using selenium .but met wired thing can't locate element. tell me how deal this. i've tried this:
driver.find_element_by_xpath('//*[@onclick="addrule"]').click() or
driver.find_element_by_css_selector('div.addbutton') nothing works..
use
i saw there frame
so first switch frame:
driver.switch_to_frame("contents") driver.find_element_by_class_name('addbutton"]').click() 
Comments
Post a Comment