How to use the WebElement function from selenium-webdriver
Find comprehensive JavaScript selenium-webdriver.WebElement code examples handpicked from public code repositorys.
GitHub: shootdaj/MIDIatorModules
19 20 21 22 23 24 25 26 27 28
this.EventEmitter = webdriver.EventEmitter; this.FileDetector = webdriver.FileDetector; this.Key = webdriver.Key; this.Session = webdriver.Session; this.WebDriver = webdriver.WebDriver; this.WebElement = webdriver.WebElement; this.WebElementPromise = webdriver.WebElementPromise; this.error = webdriver.error; this.logging = webdriver.logging; this.promise = webdriver.promise;
1
0
2
168 169 170 171 172 173 174 175 176
if (selector instanceof ShadowRoot) { return resolve(selector); } if (selector[WEB_ELEMENT_ID] && isFunction(selector.getId)) { const webElement = new WebElement(this.driver, selector.getId()); return resolve(webElement); }
0
0
0
+ 2 other calls in file
21 22 23 24 25 26 27 28 29 30
if (webElementOrString instanceof WebElement) { return webElementOrString; } if (isString(webElementOrString)) { return new WebElement(this.driver, webElementOrString); } throw new Error(`Unknown element: ${webElementOrString}`); }
0
0
0
GitHub: blend/protractor
43 44 45 46 47 48 49 50 51 52
EventEmitter = webdriver.EventEmitter; FileDetector = webdriver.FileDetector; Key = webdriver.Key; Session = webdriver.Session; WebDriver = webdriver.WebDriver; WebElement = webdriver.WebElement; WebElementPromise = webdriver.WebElementPromise; error = webdriver.error; logging = webdriver.logging; promise = webdriver.promise;
0
0
35
+ 5 other calls in file
selenium-webdriver.Builder is the most popular function in selenium-webdriver (1701 examples)