level 1
我在使用selenium做自动化测试时,网页中需要选择固定的一种颜色,比如红色,默认是黑的。现在能够找到这个标签,但是使用send_keys不起作用,请教大神有知道怎么弄的吗?
这句话路径是对的,但是不起作用的:self.driver.find_element_by_xpath("//table[@class='table table-next table-hover']//tbody//tr[2]//td[4]//input[@type='color']").send_keys("#ff0000"),

2017年04月10日 13点04分
1
这句话路径是对的,但是不起作用的:self.driver.find_element_by_xpath("//table[@class='table table-next table-hover']//tbody//tr[2]//td[4]//input[@type='color']").send_keys("#ff0000"),
