selenium 怎么定位第2个按钮?
selenium 怎么定位第2个按钮?aa= driver.find_element_by_css_selector('button').text#尋找按鈕 print (aa) aa= driver.find_element_by_css_selector('button').click()
aa= driver.find_element_by_css_selector('button').text#尋找按鈕 print (aa) aa= driver.find_element_by_css_selector('button').click()
aa= driver.find_elements_by_css_selector('button')[1].text#尋找按鈕 aa= driver.find_elements_by_css_selector('button')[1].click()