我在点击按钮之前尝试了两种方法等待,但是我收到了一个错误。我想等到锚文本illegal remote method encountered: public abstract java.util.Iterator java.lang.Iterable.iterator()
可用。
interface IFleet extends Remote {...}
class Fleet extends UnicastRemoteObject implements IFleet, Iterable<IShip> {...}
或:
stored query
错误:
element = WebDriverWait(driver, 200).until(EC.presence_of_element_located((By.ANCHOR,"stored query")))
driver.find_element_by_link_text("[Comma-Delimited Text (CSV)]").click()
答案 0 :(得分:0)
我刚刚通过网页再次搜索了id
的任何元素并找到了一个form
。
我等待页面的最终代码是:
from selenium.webdriver.common.by import By
from selenium.webdriver.support.expected_conditions import presence_of_element_located
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC, wait
# Some code for loading web page
WebDriverWait(driver, 200).until(EC.presence_of_element_located((By.ID, "call_list")))
# Hit button/ perform next action
driver.find_element_by_link_text("[Comma-Delimited Text (CSV)]").click()