[Bug 29278] New: [WebDriver Spec]: Get Title

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29278

            Bug ID: 29278
           Summary: [WebDriver Spec]: Get Title
           Product: Browser Test/Tools WG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebDriver
          Assignee: public-browser-tools-testing@w3.org
          Reporter: samuong@chromium.org
        QA Contact: public-browser-tools-testing@w3.org
                CC: mike@w3.org
            Blocks: 20860
  Target Milestone: ---

When browsing to a page that has no <title> element in Chrome, the text in the
tab handle is set to the URL, and window.top.document.title is an empty string.
So the existing GetTitle command in ChromeDriver will return the URL, since
this is what a user would see when looking at the browser's UI.

This differs from FirefoxDriver which will return an empty string, as well as
the current draft spec - section 7.6 Get Title says that the get title command
is equivalent to calling "window.top.document.title" in JavaScript.

I'm not particularly attached to any existing behavior, but changing this does
break some existing tests, so I'd like to get some clarification on what the
correct behavior is. Should we try to match what the user sees in the UI, or
what is in window.top.document.title?


Referenced Bugs:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20860
[Bug 20860] WebDriver Level 1
-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 13 November 2015 19:16:47 UTC