Set the browser title by code

2 posts, 0 answers
  1. Michel
    Michel avatar
    19 posts
    Member since:
    Jan 2011

    Posted 14 Apr 2011 Link to this post


    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 ?

  2. Stoich
    Stoich avatar
    1 posts

    Posted 15 Apr 2011 Link to this post

    Hello Michel,
         the title of a page is defined in the HTML code describing that page:
    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.

    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
Back to Top