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, 2020 in Selenium by Jordan
• 410 points
795 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 24, 2020 in Selenium by Niroj
• 82,840 points
8,502 views
0 votes
1 answer
+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, 2020 in Selenium by Sri
• 3,190 points
2,938 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,500 points
13,772 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

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

answered Apr 14, 2018 in Selenium by king_kenny
• 3,710 points
6,521 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
9,187 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