webelement objects returned from the find_element_and find_elements_methods have click(method that simulates mouse click on that element this method can be used to follow linkmake selection on radio buttonclick submit buttonor trigger whatever else might happen when the element is clicked by the mouse for exampleenter the following into the interactive shellfrom selenium import webdriver browser webdriver firefox(browser get(linkelem browser find_element_by_link_text('read online for free'type(linkelemlinkelem click(follows the "read online for freelink this opens firefox to object for the element with the text read it onlineand then simulates clicking that element it' just like if you clicked the link yourselfthe browser then follows that link filling out and submitting forms sending keystrokes to text fields on web page is matter of finding the or element for that text field and then calling the send _keys()method for exampleenter the following into the interactive shellfrom selenium import webdriver browser webdriver firefox(browser get(userelem browser find_element_by_id('user_nameuserelem send_keys('your_real_username_here'passwordelem browser find_element_by_id('user_pass'passwordelem send_keys('your_real_password_here'passwordelem submit(as long as login page for metafilter hasn' changed the id of the username and password text fields since this book was publishedthe previous code will fill in those text fields with the provided text (you can always use the browser' inspector to verify the id calling the submit(method on any element will have the same result as clicking the submit button for the form that element is in (you could have just as easily called emailelem submit()and the code would have done the same thing warning avoid putting your passwords in source code whenever possible it' easy to accidentally leak your passwords to others when they are left unencrypted on your hard drive if possiblehave your program prompt users to enter their passwords from the keyboard using the pyinputplus inputpassword(function described in web scraping