E
E
Ernest Vardanyan2022-02-23 16:44:15
Python
Ernest Vardanyan, 2022-02-23 16:44:15

How to send values ​​from a list using send_keys?

I need to take values ​​from the dictionary, send them to the search via send_keys and select an object, do the necessary work with it and then return to the right place again, send another value, and so on until the end of the list

www = [i.find_element_by_tag_name('a').get_attribute('href')[26:-1] for i in all_urls]
time.sleep(3)

close_open=browser.find_element_by_xpath('/html/body/div[6]/div/div/div/div[1]/div/div[2]/button').click()
time.sleep(3)
click_search=browser.find_element_by_xpath('/html/body/div[1]/section/nav/div[2]/div/div/div[2]').click()
time.sleep(4)
click_search.sand_kays('555')


Everything comes out for me until the moment I click on the line, it is highlighted and that’s it, I don’t know how to do it right, I googled it, but something didn’t help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question