We have to create an object of webdriver so that we can use it as a remote control to perform any automation task we wish to. # store the credentials user_id = "email_or_phone_number_to_your_facebook_account" password = "password_to_your_facebook_account" We'll do one more quick step here, which is storing the credentials in variables. To do that, I type: # importing the required module from selenium import webdriver Step 1: Open Googleīy reading the documentation, I noticed this is achieved using the webdriver.Chrome function, which means I've to import Step by step, we are going to solve each step of the algorithm we created earlier, and voila! - our build would be successful. Open your browser, and search for "How to automate web using Python?" Want to search for something that could help us perform this task. This is the algorithm for our problem statement. Step 5: Click on the input box under Password Step 3: Click on the input box under Email ID/Phone number Let's list out the steps we want our program to automate: Step 1: Open Google I choose Python as my ideal programming language for this task because of its ease and powerful libraries. The most feasible solution to automate a program is by building one. To solve this, we need to come up with an elegant method that does this task for us. The problem is to perform the same login task every morning. The first step in problem-solving is to identify the root of the The Approach of Problem-Solving via Automation Final Source Code for Automating Facebook Login Using Python:ġ.Step 5: Click on the input box under Password.Step 3: Click on the input box under Email ID/Phone number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |