From 0408bdb75f26951444245e30d1c80d616168423f Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Sat, 23 Jul 2016 14:51:03 -0400 Subject: [PATCH] Update the MasterQA basic example test --- examples/basic_masterqa_test.py | 4 ++-- seleniumbase/masterqa/ReadMe.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/basic_masterqa_test.py b/examples/basic_masterqa_test.py index 33a67b9b..871f1d8f 100755 --- a/examples/basic_masterqa_test.py +++ b/examples/basic_masterqa_test.py @@ -8,5 +8,5 @@ class MasterQATests(MasterQA): self.verify("Do you see a webcomic?") self.click_link_text('Store') self.verify("Do you see items for sale?") - self.update_text("input#top-search-input", "poster\n") - self.verify("Do you see posters in the search results?") + self.update_text("input.search-input", "Robots\n") + self.verify("Do you see robots in the search results?") diff --git a/seleniumbase/masterqa/ReadMe.md b/seleniumbase/masterqa/ReadMe.md index 6962ba1a..e0076c2a 100755 --- a/seleniumbase/masterqa/ReadMe.md +++ b/seleniumbase/masterqa/ReadMe.md @@ -10,15 +10,15 @@ self.open("http://xkcd.com/1700/") self.verify("Do you see a webcomic?") self.click_link_text('Store') self.verify("Do you see items for sale?") -self.update_text("input#top-search-input", "poster\n") -self.verify("Do you see posters in the search results?") +self.update_text("input.search-input", "Robots\n") +self.verify("Do you see robots in the search results?") ``` After the web browser performs various automated actions, a pop-up window will ask the tester questions for each verification command. *(See the screenshot below)* ![](http://cdn2.hubspot.net/hubfs/100006/xkcd_new_bug_chrome3.png "MasterQA Example") -At the end of a full test run, as seen from [this other example](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/masterqa_test.py), you'll see a results page that appears after responding to all the verification questions. (Failed verifications generate links to screenshots and log files.) +At the end of a full test run, as seen from [this longer example](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/masterqa_test.py), you'll see a results page that appears after responding to all the verification questions. (Failed verifications generate links to screenshots and log files.) ![](http://cdn2.hubspot.net/hubfs/100006/images/hybrid_screen.png "MasterQA Example")