Python 硒“;通过“U id”查找“U元素”;在网上银行找不到元素?
我想在网上银行做一些自动交易。 但是找不到登录元素 我在Google上使用相同的逻辑,它可以找到输入框元素。 但找不到在线银行登录输入框元素 有人可以帮忙!! 多谢各位 下面是我的脚本Python 硒“;通过“U id”查找“U元素”;在网上银行找不到元素?,python,selenium,Python,Selenium,我想在网上银行做一些自动交易。 但是找不到登录元素 我在Google上使用相同的逻辑,它可以找到输入框元素。 但找不到在线银行登录输入框元素 有人可以帮忙!! 多谢各位 下面是我的脚本 driver.webdriver.Chrome("C:\chromedriver\chromedriver.exe") driver.get("https://ebank.esunbank.com.tw") driver.find_element_by_id('loginf
driver.webdriver.Chrome("C:\chromedriver\chromedriver.exe")
driver.get("https://ebank.esunbank.com.tw")
driver.find_element_by_id('loginform:custid').send_keys('test123')
回应↓↓
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"id","selector":"loginform:custid"}
我尝试使用Selenium IDE
导出python代码,并比较
现在我知道了,
我把剧本弄丢了
driver.switch_to.frame(0)
新问题
我不创建新页面
为什么我需要使用switch_to???我尝试使用Selenium IDE
导出python代码,并比较
现在我知道了,
我把剧本弄丢了
driver.switch_to.frame(0)
新问题
我不创建新页面
为什么我需要使用switch_to???我自己尝试过,显式等待也不起作用,因为它在I框架内,尝试找出如何在I框架中获取某些内容我自己尝试过,显式等待也不起作用,因为它在I框架内,尝试找出如何在I框架中获取某些内容