Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 硒“;通过“U id”查找“U元素”;在网上银行找不到元素?_Python_Selenium - Fatal编程技术网

Python 硒“;通过“U id”查找“U元素”;在网上银行找不到元素?

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

我想在网上银行做一些自动交易。 但是找不到登录元素

我在Google上使用相同的逻辑,它可以找到输入框元素。 但找不到在线银行登录输入框元素 有人可以帮忙!! 多谢各位

下面是我的脚本

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框架中获取某些内容