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,910 points
65 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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
1 answer

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

Use the CSS Selector button to like: #watch8-sentiment-actions ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,030 points
431 views
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer

How can I click on male tag in facebook using selenium?

There is an approach for locating an ...READ MORE

answered Dec 20, 2018 in Selenium by Nabarupa
34 views
0 votes
1 answer

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,030 points
66 views
0 votes
1 answer
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,130 points
438 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
52 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
55 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.