Sign in Booking.com using Selenium in Python Last Updated : 04 Jan, 2021 Improve Improve Like Article Like Save Share Report In this article, we’re going to study a simple how-to log in booking.com by selenium. Selenium is a free tool for automated trying out across exceptional browsers. Requirement: You need to install chromedriver and set path. Click here to download. Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Below are the steps: First, go to the booking.com website. Then click on investigate element by urgent ctrl + shift + i or stepping into setting of browser and clicking on investigate detail manually. Then navigate the box where email is filled then copy the x_path. Then navigate the next button and copy the x_path. Then navigate the Password then copy the x_path. Then navigate the Sign-in button then copy the x_path. Below is the implementation: Python3 # import required modules from selenium import webdriver from selenium.webdriver.common.keys import Keys import time # create instance of Chrome webdriver driver = webdriver.Chrome() driver.get("https://account.booking.com/sign-in?op_token=EgVvYXV0aCLdAgoUdk8xS2Jsazd4WDl0VW4yY3BaTFMSCWF1dGhvcml6ZRo1aHR0cHM6Ly9zZWN1cmUuYm9va2luZy5jb20vbG9naW4uaHRtbD9vcD1vYXV0aF9yZXR1cm4q_AFVcm9CSnFTUk5fY0p6TzJ2d0VuTzdycl92NzBncExyTEZ1TDc0Z2RlNlB2Tnc5T1FscEFISEI5MlpWVGZpNFd1eWplaDE0dm50S0Q5aHBXM3ladWdpLXY0SEZoLVFhRDdSbGk5dkRzSmN0MmE4ZXNpZEU1VHo0WkRyTDB3M3Y5Um9UNEU3dUh1SzMxZXNfTmM3Q2l4NWtNUkxpRFk0cnhEVVBaRXo5enJXV2psdVBnNHBpUlBNaUh4LUJzRTNSWVA1Z19WVWRSSHdOQTVzcWhGVGkzSDlET013dUJFWHY4dThsQjE4Z3BfdUJJLUtGaDQxSUgzcGYxWGx1TkVCBGNvZGUqFgiOyBIwwaf46Ii8JDoAQgBYgd3j_AU") # find the element where we have to # enter the xpath # fill the email driver.find_element_by_xpath('//*[@id="username"]').send_keys('xxxxxx.com') # click on next button driver.find_element_by_xpath( '//*[@id="root"]/div/div[2]/div[1]/div/div/div/div/div/div/form/div[3]/button/span').click() # find the element where we have to # enter the xpath # fill the password driver.find_element_by_xpath('//*[@id="password"]').send_keys('Praxxxxx') # find the element Sign in # request using xpath # clicking on that element driver.find_element_by_xpath( '//*[@id="root"]/div/div[2]/div[1]/div/div/div/div/div/div/form/button/span').click() Output: https://media.geeksforgeeks.org/wp-content/uploads/20201106210555/MyVideo_1.mp4 Like Article Suggest improvement Next Sign in Geeksforgeeks using Python Selenium Share your thoughts in the comments Add Your Comment Please Login to comment...