本质上,我试图使用selenium并检查元素来查找类名,从而自动/自动填充google表单。from selenium import webdriver
option.add_argument("-incognito")browser = webdriver.Chrome(executable_path="path to selenium")
op
有些元素可能不存在于页面中,但我必须等待30秒,这让我非常苦恼,因为我必须找到许多可能不存在的元素。因此,如何修改找不到的默认30秒元素的问题一直困扰着我。这个默认等待时间与selenium包相关吗?).until(EC.presence_of_all_elements_located((By.XPATH,‘//input@qtype=“302”’)) 但他们没有达到我等待10秒的期望 from seleniumimport webdrive
我想用selenium和python自动化Gmail,一切都很好,但是这里的问题是文件附件。我该怎么处理呢?#this is where I get stuck and not sure what to do here
bodyElem.send_keys('A test email withh selenium