0

您好,所以我的问题是我正在尝试使用 python、selenium 和 chrome webdriver 在 Workday 中自动执行一项任务,但是当我尝试 xpath 和 css 选择器时没有任何反应,并且该网站中的 id 是动态的,但我什至无法让它点击用户名框,所以这里是信息:

元素 html :输入 type="password" class="gwt-PasswordTextBox GNMRENADM1B" autocapitalize="none" autocorrect="off" >autocomplete="off" aria-label="Password" dir="ltr">

代码

从硒导入网络驱动程序

驱动程序 = webdriver.Chrome()

driver.get('网站')

driver.find_element_by_xpath("//input[@type='password']").send_keys("Hello")

任何如何使它工作的想法,并不是说一切都像 selenium IDE 的魅力。谢谢!

4

0 回答 0