if handle !=sreach_windows: #此处应该为search driver.switch_to.window(handle)
if handle == sreach_windows; #此处应该为search driver.switch_to.window(handle) print(‘now sreach window!’) #此处应该为search
“useranme”改为”username”
Video = driver.find_element_by_path(“body/setion[1]/div/video) ,此处应该是section 而不是setion
就可以找到baidu_error.jpg图片文件,在上文的例子里图片文件名 是“baidu_img”而不是“baidu_error”
if handle !=sreach_windows: #此处应该为search
driver.switch_to.window(handle)
if handle == sreach_windows; #此处应该为search
driver.switch_to.window(handle)
print(‘now sreach window!’) #此处应该为search
“useranme”改为”username”
Video = driver.find_element_by_path(“body/setion[1]/div/video) ,此处应该是section 而不是setion
就可以找到baidu_error.jpg图片文件,在上文的例子里图片文件名 是“baidu_img”而不是“baidu_error”