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

+1 vote
public static void verifytitle()
{
String Createanewaccounttttt=driver.getTitle();

System.out.println("Title is"+Createanewaccounttttt);

String excepted_title="Create a new account";

Assert.assertEquals(Createanewaccounttttt, excepted_title);
System.out.println("As desired");

}
Sep 24 in Selenium by Jordan
• 410 points
58 views
In case you are trying to print the title refer to this thread: https://www.edureka.co/community/33298/how-to-get-the-title-of-a-webpage-using-selenium-java

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

I am not able to generate extent report with screenshot in selenium cucumber java .. Please help me out

Hello @kanikahans, You need to define Extent Report ...READ MORE

answered Aug 23 in Selenium by Niroj
• 66,340 points
301 views
+1 vote
2 answers
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
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
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,710 points
2,517 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