Link to home
Start Free TrialLog in
Avatar of chima
chima

asked on

Selenium getTitle

Hello,
I'm not sure whether getTitle is a Selenium method.  I'm at;
https://code.google.com/p/selenium/wiki/GettingStarted
The example uses;
// Check the title of the page
        System.out.println("Page title is: " + driver.getTitle());

I would like to find the web link/page which explains getTitle.

I have googled it, but the links found do not really explain getTitle.  I also searche for driver class.
Any suggestions?

What has happened to the "Test & Validation" zone?  It is not listed.  Sure wish that E&E had a Selenium expert.
thanks
ASKER CERTIFIED SOLUTION
Avatar of Craig Kehler
Craig Kehler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chima
chima

ASKER

scrutinizer, I failed to "pay attention to" this; WebDriver driver = new HtmlUnitDriver();
I get it now.
May I keep this question open and ask one more question?
I thought that might be it. If you want to see their example actually run through the browser just change it to WebDriver driver = new FirefoxDriver();

If the other question is relevant to the title of this one, I don't mind trying to answer it. But if it is on a different tangent it might be better to ask a new question so other users can find the solution later (assuming I can answer it) :)
Avatar of chima

ASKER

scrutinizer, you are right.  It is best to start a new question.  Plus I don't have one at the moment that pertains to Selenium.