我需要我的应用程序的CFBundleversion,所以我已经尝试了剪贴iTunesConnect网站,但我不能得到元素
我试过:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://appstoreconnect.apple.com/login")
elem = driver.find_element_by_xpath("//input[@id='account_name_text_field']")
我收到以下错误:
elenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@id='account_name_text_field']
我认为网站的结构不同。。。 我该怎么办
你的定位器没问题:
它在
iframe
内,需要先切换,使用frame_to_be_available_and_switch_to_it
和visibility_of_element_located
,如下所示:以下导入:
相关问题 更多 >
编程相关推荐