How to use the prototype function from selenium-webdriver

Find comprehensive JavaScript selenium-webdriver.prototype code examples handpicked from public code repositorys.

23
24
25
26
27
28
29
30
31
32
  engines.selenium.registerCommand(commands.REQUESTS_STOP, 'DELETE', '/session/:sessionId/autotester/requests');
  engines.selenium.registerCommand(commands.REQUESTS_GET, 'POST', '/session/:sessionId/autotester/requests');
}

function addRequestsMethod() {
  WebDriver.prototype.requests = function () {
    if (!this.collector_) {
      this.collector_ = new Collector(this);
    }
    return this.collector_;
fork icon27
star icon164
watch icon18