@netsells/simulate-user
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -162,5 +162,4 @@ "use strict"; | ||
this.log('getElementById', id); | ||
return this.first({ | ||
query: "#".concat(id) | ||
}); | ||
var node = document.getElementById(id); | ||
return node && this.constructor.build(node); | ||
} | ||
@@ -167,0 +166,0 @@ /** |
{ | ||
"name": "@netsells/simulate-user", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Library for simulating user interactions using JavaScript in the browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -125,3 +125,5 @@ import { timeout, TimeoutError } from 'promise-timeout'; | ||
return this.first({ query: `#${ id }` }); | ||
const node = document.getElementById(id); | ||
return node && this.constructor.build(node); | ||
} | ||
@@ -128,0 +130,0 @@ |
91005