Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

1
How to get the name of browser using Web Driver?

Open 1 Answers 58 Views
1 1

How to get the name of browser using Web Driver?

Please explain with code.

1 Answer

0
0

You can simply use

 

driver.getTitle()

 

to get name/title of the browser.

 

Hope that helps.

answered by (151 points)
3Comments
commented by (324 points)
is it for window title?
commented by (151 points)
Yes, That code is for the browser window title. Is that what you asked for?
commented by (324 points)
Yes, thank you!

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...