How to click on Login button on facebook

+1 vote
What are the ways I can use to click on the login button of facebook? Please help.
Dec 18, 2018 in Selenium by Anjali
• 2,950 points
2,895 views

1 answer to this question.

+1 vote

As you said, you can use the loactor ID for doing it:

See the screenshot here:

Here you can get the ID for the Login button and use it to test the login button.

E.g., I am using the login button to click like this :

driver.get("https://www.facebook.com");//Opening facebook after entering the username and password
driver.findElement(By.id("u_0_2")).click());//click the button

Hope this helps.

answered Dec 18, 2018 by Nabarupa

Related Questions In Selenium

0 votes
2 answers

Python & Selenium: How to find and click on YouTube's Like button

Hello Nitin, as the Like button on ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,140 points
4,909 views
+1 vote
2 answers
0 votes
1 answer
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
12,617 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
8,572 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,910 points
6,629 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 3, 2020 in Selenium by Sri
• 3,190 points
7,519 views
+1 vote
1 answer
0 votes
1 answer

How to use click() with any button or any link?

I am taking an example for gmail ...READ MORE

answered Dec 20, 2018 in Selenium by Shuvodip
797 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP