HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER DRIVERS # Send id information id_box.send_keys('my_username') Our program now has access to the id_box and we can interact with it in various ways, such as typing in keys, or clicking (if we have selected a button). We carry out the same process for the password box and login button, selecting each based on what we see in the Chrome developer tools. Then, we send information to the elements or click on them as needed. # Find password box pass_box = driver.find_element_by_name('password') # Send password pass_box.send_keys('my_password') # Find login button login_button = driver.find_element_by_name('submit') # Click login login_button.click() Once we are logged in, we are greeted by this slightly intimidating dashboard: HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER PASSWORD We again need to guide the program through the webpage by specifying exactly the elements to click on and the information to enter. HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER PASSWORD.HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER CODE.HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER DRIVER.HOW TO MAKE A COMPUTER PROGRAM INTERACT WITH A WEB BROWSER DRIVERS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |