按上面的写法,不会点击,print(btn),如下:
[<splinter.driver.webdriver.WebDriverElement object at 0x000000000E941FD0>, <splinter.driver.webdriver.WebDriverElement object at 0x000000000E941EF0>]
试了方法二:
bs.find_by_xpath("//*[starts-with(@id, 'vbase_login_loginVBASE_JGButton1')]")[1].click
报这个错:
no elements could be found with xpath "//*[starts-with(@id, 'vbase_login_loginVBASE_JGButton1')]"