Skip to content

Commit

Permalink
[JS] Removing deprecation warning for tagName and unused imports (Sel…
Browse files Browse the repository at this point in the history
…eniumHQ#8516)

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
harsha509 and diemol committed Jul 13, 2020
1 parent c79fc0c commit 00b70d8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion javascript/node/selenium-webdriver/lib/by.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ class By {
*
* @param {string} name The tag name to search for.
* @return {!By} The new locator.
* @deprecated Use {@link By.css() By.css(tagName)} instead.
*/
static tagName(name) {
return By.css(name);
Expand Down
1 change: 0 additions & 1 deletion javascript/node/selenium-webdriver/lib/test/fileserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

'use strict';

const fs = require('fs');
const http = require('http');
const path = require('path');
const url = require('url');
Expand Down
6 changes: 0 additions & 6 deletions javascript/node/selenium-webdriver/lib/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@

'use strict';

const assert = require('assert');

const build = require('./build');
const fileserver = require('./fileserver');
const firefox = require('../../firefox');
const logging = require('../../lib/logging');
const remote = require('../../remote');
const safari = require('../../safari');
const testing = require('../../testing');
const webdriver = require('../../');

const NO_BUILD = /^1|true$/i.test(process.env['SELENIUM_NO_BUILD']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
'use strict';

const assert = require('assert');
const {fail} = require('assert');

const {Browser, By, WebElement, error} = require('..');
const {Pages, ignore, suite} = require('../lib/test');

Expand Down Expand Up @@ -324,7 +322,7 @@ suite(function(env) {
it('fails if script took too long', function() {
return executeTimeOutScript(TOO_LONG_WAIT)
.then(function() {
fail('it should have timed out');
assert.fail('it should have timed out');
}).catch(function(e) {
if (env.browser.name === Browser.SAFARI) {
assert.equal(e.name, error.TimeoutError.name);
Expand Down

0 comments on commit 00b70d8

Please sign in to comment.