Reading the Tab Title of a Browser

3 posts, 0 answers
  1. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 14 Feb 2012 Link to this post


    I would like to read the value that appears in the tab of the page I'm viewing in Internet Explorer 9.  For instance, this page I'm looking at now is called "New Forum Thread | Telerik..." (followed by a string defining the thread, etc.).
    In my Code Behind window I have this VB sub:

            Public Sub GetTabTitle()
                Dim pageTitle As String = ActiveBrowser.PageTitle
            End Sub
    I haven't added any Imports so the script just has the default ones.
    When I execute my script the log shows:

    C:\Users\edwardni\Documents\Test Studio Projects\Base\SystemAdmin\SA_Themes\ValidateThemesScreen.tstest.vb: Line 72: (BC30516) Overload resolution failed because no accessible 'AreEqual' accepts this number of arguments.

    Can anywone advise where I am going wrong?

    Nigel Edwards, Transition Computing.
  2. Anthony
    Anthony avatar
    19 posts

    Posted 14 Feb 2012 Link to this post

    Hello Nigel,

    The page title code is correct. It looks like you're getting a compilation error from another test ("ValidateThemesScreen"). You'll need to resolve the issue in that test directly. See here for more information.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 16 Feb 2012 Link to this post

    Thanks, Anthony.  The issue has been resolved by applying the latest Test Studio upgrade, which allowed me to fix one or two things.  As it happens, I also found an alternative way of doing what I want, without going to the Code Behind window, so everythign is now good.  :)
Back to Top