How can i bypass login in Selenium webdriver

+1 vote
I am trying to check the various functiaonality of facebook using automation script but each time i run the script the login page appears than the script fills the login page which takes much time and create delay in work. So, how can i bypass the login
Aug 11, 2020 in Software Testing by Pranish
• 190 points
1,965 views

1 answer to this question.

0 votes

Hey @Pranish, here's a method that uses cookie manipulation. Many of the websites are creating cookies. Those cookies create an expiration timestamp to your logged-in user. So you access the authorized area of the website faster even after turning on/off the browser. So why not inject those cookies into our selenium driver before ever test.

Check this out for a similar example https://www.swtestacademy.com/bypass-login-in-selenium-webdriver/

Hope this helps!

answered Aug 11, 2020 by Karan
• 19,620 points

Related Questions In Software Testing

+2 votes
0 answers

Comparing data with the data in excel sheet using Selenium Webdriver

Hello, I have written a code for registration ...READ MORE

Apr 9, 2020 in Software Testing by Kunal
• 140 points
2,497 views
+2 votes
0 answers
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
5,925 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
6,393 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
4,029 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,190 points
4,979 views
+1 vote
1 answer

How can we connect Selenium to Existing browser in Ruby Programming language?

Check this out https://www.browserstack.com/docs/automate/sele ...READ MORE

answered Aug 11, 2020 in Software Testing by Karan
• 19,620 points
397 views
+1 vote
1 answer

Selenium webdriver in java how to automate email verification ?

Hey @Manali, check this out https://blog.mailtrap.io/selenium-email-ve ...READ MORE

answered Oct 19, 2020 in Software Testing by Karan
• 19,620 points
888 views