hello i am valdating facebook page i have wrriten below code ingu button but it is not clicking on buttons

0 votes
public void blank()

{

WebElement singup=driver.findElement(By.xpath("//body/div/div/div/div/div/div/div/div/div/form/div/div/button[1]"));

singup.click();

//String actual_error=driver.findElement(By.name("fullname_error_msg")).getText();

}
Sep 28 in Selenium by Jordan
• 410 points
45 views

1 answer to this question.

0 votes
Hey @Jordan, What's the error you are getting?
answered Sep 28 by Karan
• 18,400 points

Related Questions In Selenium

+1 vote
0 answers

Hello i have written below code to verify title using POM method but i am not able to print please help me

public static void verifytitle() { String Createanewaccounttttt=driver.getTitle(); System.out.println("Title is"+Createanewaccounttttt); String excepted_title="Create ...READ MORE

Sep 24 in Selenium by Jordan
• 410 points
58 views
+1 vote
2 answers
0 votes
2 answers

I am trying to run the below code but java.lang.Illegalstate Exception is coming

You are facing this error because while ...READ MORE

answered Jun 21, 2019 in Selenium by Abha
• 27,930 points
258 views
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,520 points
3,752 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31 in Selenium by Sri
• 2,970 points
4,736 views
0 votes
2 answers

What is the role of TestNG & JUnit frameworks in Selenium?

TestNG and JUnit are test frameworks . it ...READ MORE

answered Sep 4 in Selenium by Sri
• 2,970 points
881 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
2,726 views