This is a migrated thread and some comments may be shown as answers.

Set the browser title by code

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michel
Top achievements
Rank 1
Michel asked on 14 Apr 2011, 04:11 PM
Hi,

When I navigate to a webpage in my test, I would like to set the browser title displayed with a custom text when running my test. Is it possible to do this by code ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 15 Apr 2011, 09:53 AM
Hello Michel,
     the title of a page is defined in the HTML code describing that page:
http://www.w3schools.com/TAGS/tag_title.asp
You can get the title of a page in code like this:
String title  = ActiveBrowser.PageTitle;
But there's no way Test Studio can actually change the HTML code to change the title.

Hope to hear from you soon.

Greetings,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or