-
The stated long-term goal for the WebDriver project is to be the reference implementation of the W3C browser automation standard from a client perspective
-
The browser vendors [w|s]ould provide 'shims' which know about the WebDriver JSON protocol
-
Google and Opera do already, Mozilla will shortly with Marionette
-
PhantomJS (non-vendor) is 'ready'
-
The Se project produces one for IE (which would be happily handed off to MS should they come to the table)
-
shims will likely come in two types; jar or executables (depending on platform)
-
WebDriver comes in two flavours; WebDriver and Remote WebDriver (see every other naming rant I've gone on...)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| So I have been testing software professionally for over ten years and in that time the web and mobile | |
| have dramatically changed the sorts of things that I get asked to test. It is a little ironic then that | |
| the systems marketed at testers to do their jobs have largely gone unchanged since the mid 90s. | |
| Testing is a creative process, but the systems available to us right now use a rote, robotic, do this, | |
| do that, expect this result approach. And that’s not very creative at all. But those of us on the | |
| forefront testing know a better way to do things. Mindmaps. Yes, those fun little bubble diagrams you | |
| used back in highschool to brainstorm are ideally suited for capturing and managing test ideas. | |
| There are a number of mindmapping applications floating around that have been co-opted by the testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once('third_party/pop3class-2009-02-01/pop3.php'); | |
| require_once('PHPWebDriver/WebDriverWait.php'); | |
| class MailinatorProvider extends pop3_class { | |
| function __construct($email, $debug = 0) { | |
| $this->hostname = "pop.mailinator.com"; | |
| $this->port = 110; | |
| $this->username = strstr($email, '@', True); | |
| $this->password = "abcdefgh"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Remote(object): | |
| IS_A_REMOTE_BROWSER = True | |
| def send_keys(self): | |
| if self.IS_A_REMOTE_BROWSER: | |
| print('%s is a remote' % self.__class__.__name__) | |
| print('send_keys') | |
| class Firefox(Remote): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this is in chemistry kit | |
| module ChemistryKit | |
| module PageObject | |
| def initialize(driver) | |
| @driver = browser | |
| super | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| def pytest_collection_modifyitems(items): | |
| random.shuffle(items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Testsuite: org.openqa.selenium.android.AndroidDriverTests | |
| Tests run: 51, Failures: 2, Errors: 17, Time elapsed: 46.61 sec | |
| ------------- Standard Error ----------------- | |
| Nov 25, 2012 5:09:27 PM org.openqa.selenium.testing.JUnit4TestBase$1 starting | |
| INFO: >>> Starting testFindElementByXPath(org.openqa.selenium.ChildrenFindingTest) | |
| Nov 25, 2012 5:09:34 PM org.seleniumhq.jetty7.server.Server doStart | |
| INFO: jetty-7.x.y-SNAPSHOT | |
| Nov 25, 2012 5:09:35 PM org.seleniumhq.jetty7.server.handler.ContextHandler startContext | |
| INFO: started o.s.j.w.WebAppContext{/common,file:/Users/adam/selenium/selenium-2.26.0/common/src/web/},/Users/adam/selenium/selenium-2.26.0/./common/src/web | |
| Nov 25, 2012 5:09:35 PM org.seleniumhq.jetty7.server.handler.ContextHandler startContext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| class ValidationException(Exception): | |
| pass | |
| class Element34(object): | |
| def __init__(self, driver): | |
| self.driver = driver | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium.webdriver import Ie | |
| import selenium.common.exceptions | |
| browser_amount = 0 | |
| # | |
| # Method One: pass in the path to the server | |
| # | |
| try: | |
| # because this is being handled 'as code', it needs to have the \'s escaped |