它是一个复选框,通过xpath查找元素并尝试通过xpath选择该元素,然后单击它,该元素在Windows中有效,但在Linux中不适用
在Windows中进行了尝试,但找不到Linux的解决方案
actual_site = driver.find_element_by_link_text("filmgrapevine.com -
(14221)").click() #live
driver.implicitly_wait(10)
elem = driver.find_element_by_id("square-300x250") # Getting
unable to find element error
elem.click()
submit = driver.find_element_by_id("PageAds").click()
elem = driver.find_element_by_id(“ square-300x250”) 找不到元素错误
我尝试使用xpath,选择器在stackoverflow上找到了各种解决方案,但没有结果 有人可以帮我吗? 甚至尝试在Linux中使用chrome驱动程序和gecko驱动程序都无法正常工作