是否可以添加硒和发送密钥?

时间:2017-10-15 22:48:15

标签: python selenium

我觉得有一种方法可以更快地完成这项工作,我一直在阅读文档,但我无法找到任何内容。

就是这样:

// Create a reference to the cities collection
var citiesRef = db.collection("cities");

// Create a query against the collection.
var query = citiesRef.where("state", "==", "CA");

所以我想发送号码,但每次加11。我的大脑已被炒了几个小时我一直在努力,任何帮助都表示赞赏。

1 个答案:

答案 0 :(得分:0)

driver.get('thewebsite');

input = 11

for i in xrange(1, 4):
    loosers = driver.find_element(By.XPATH, ' //*[@id= ')
    loosers.send_keys(str(i*input))
    driver.find_element(By.XPATH, ' //*[@id= ').click()
    sleep(30)