public function __construct($testCase) { parent::__construct($testCase); $this->pane = $this->byXPath('//a[@title="Search"]'); $this->simpleSearch = $this->byId('search-bar-search'); $this->searchButton = $this->byXPath("//form[@id='top-search-form']//div/button[contains(.,'Go')]"); }
public function __construct($testCase, $args = array()) { if (array_key_exists('url', $args)) { $this->redirectUrl = $args['url']; } parent::__construct($testCase); $this->tabs = $this->byId("main-menu"); $this->pinbar = $this->byXPath("//div[contains(@class, 'pin-bar')]"); }
public function __construct($testCase, $args = array('url' => '/')) { if (array_key_exists('url', $args)) { $this->redirectUrl = $args['url']; } parent::__construct($testCase); if (array_key_exists('remember', $args)) { $this->byId('remember_me')->click(); } $this->username = $this->byId('prependedInput'); $this->password = $this->byId('prependedInput2'); }
public function __construct($testCase) { parent::__construct($testCase); }