1. 程式人生 > >Python selenium 一個節點兩個關聯input

Python selenium 一個節點兩個關聯input

ont cnblogs col fin name color style mce 分享

HTML代碼:

技術分享圖片

一個節點兩個關聯input 多出現於密碼框

先需要模擬點擊進入第一個input,才能激活第二個input

代碼:

driver.find_element_by_name(‘Textbox1‘).click()

driver.find_element_by_id(‘TextBox2‘).send_keys(password)

Python selenium 一個節點兩個關聯input