Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 1 Answers 55 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 Nov 25, 2016 by stbadmin (192 points)
3Comments
commented Nov 25, 2016 by Vipul Sharma (324 points)
is it for window title?
commented Nov 25, 2016 by stbadmin (192 points)
Yes, That code is for the browser window title. Is that what you asked for?
commented Nov 26, 2016 by Vipul Sharma (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.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...