diff options
author | dennisjeffrey@chromium.org <dennisjeffrey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:22:12 +0000 |
---|---|---|
committer | dennisjeffrey@chromium.org <dennisjeffrey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:22:12 +0000 |
commit | dbeac5a7395be2df51590b4d8f538759bef857f7 (patch) | |
tree | 0ab6039471a6a2e8252908bc500d2996e89346f9 | |
parent | de415556289c07f6a28bec79405d413460b186d2 (diff) | |
download | chromium_src-dbeac5a7395be2df51590b4d8f538759bef857f7.zip chromium_src-dbeac5a7395be2df51590b4d8f538759bef857f7.tar.gz chromium_src-dbeac5a7395be2df51590b4d8f538759bef857f7.tar.bz2 |
Fix error breaking Chrome Endure tests, and update some tests for UI changes.
An error was introduced in https://chromiumcodereview.appspot.com/11740020
that broke the Chrome Endure tests (due to a reference to an undefined "self").
This CL fixes this error, and also makes a few changes to some of the Chrome
Endure tests to account for recent UI changes on the live sites.
BUG=None
TEST=Verified the modified tests now work with these changes against the
live sites.
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/12052031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178243 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | chrome/test/functional/perf_endure.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/test/functional/perf_endure.py b/chrome/test/functional/perf_endure.py index b351831..e2b9e3c 100755 --- a/chrome/test/functional/perf_endure.py +++ b/chrome/test/functional/perf_endure.py @@ -902,7 +902,7 @@ class ChromeEndureGmailTest(ChromeEndureBaseTest): self._ClickElementAndRecordLatency( compose_button, test_description, 'Compose') - to_xpath = '//input[@tabindex="1" and @spellcheck="false"]' + to_xpath = '//textarea[@name="to"]' self.WaitForDomNode(to_xpath, frame_xpath=self._FRAME_XPATH) to_field = self._GetElement(self._driver.find_element_by_xpath, to_xpath) to_field.send_keys('nobody@nowhere.com') @@ -1109,6 +1109,7 @@ class ChromeEndureDocsTest(ChromeEndureBaseTest): sort_xpath) sort_button.click() sort_button.click() + sort_button.click() def scenario(): # Click the "Shared with me" button, wait for 1 second, click the @@ -1116,7 +1117,7 @@ class ChromeEndureDocsTest(ChromeEndureBaseTest): # Click the "Shared with me" button and wait for a div to appear. if not self._ClickElementByXpath( - self._driver, '//span[starts-with(text(), "Shared with me")]'): + self._driver, '//div[text()="Shared with me"]'): self._num_errors += 1 logging.warning('Logging an automation error: click "shared with me".') try: @@ -1293,9 +1294,9 @@ class ChromeEndureReplay(object): WEBPAGEREPLAY_HTTPS_PORT = 8413 CHROME_FLAGS = webpagereplay.GetChromeFlags( - self.WEBPAGEREPLAY_HOST, - self.WEBPAGEREPLAY_HTTP_PORT, - self.WEBPAGEREPLAY_HTTPS_PORT) + WEBPAGEREPLAY_HOST, + WEBPAGEREPLAY_HTTP_PORT, + WEBPAGEREPLAY_HTTPS_PORT) @classmethod def Path(cls, key, **kwargs): |