我有两个输入字段来输入具有相同类的选项。Id是不同的,它是动态的,在运行时创建,所以我不能使用Id,我使用了索引,它不能正常工作。driver.findElement(By.xpath("//input[@type='text'][@placeholder='Provide a response entry that customerscan select'][1]")).click();
driver.fi
for position in driver.find_elements_by_xpath("//div[@class='d3-tip n']"): styleopacity) time.sleep(3) print tooltipmessage.textI有两个div标记,它们具有相同的类("d3-tip n&quo