def ti():
for i in range(1):
browser.switch_to.default_content()
bo = browser.find_element_by_css_selector('iframe')
browser.switch_to.frame(bo)
s = browser.find_element_by_css_selector('embed')
time.sleep(0.5)
s.send_keys(Keys.TAB)
time.sleep(0.5)
s.send_keys(Keys.ENTER)
def san():
handles = browser.window_handles
browser.switch_to.window(handles[1])
for i in range(1):
browser.switch_to.default_content()
bo = browser.find_element_by_css_selector('iframe')
browser.switch_to.frame(bo)
s = browser.find_element_by_css_selector('embed')
time.sleep(0.5)
s.send_keys(Keys.TAB)
time.sleep(0.5)
s.send_keys(Keys.TAB)
time.sleep(0.5)
s.send_keys(Keys.ENTER)
while True:
ti()
time.sleep(5)
08-24
08-24