File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 58
58
"@cucumber/cucumber-expressions" : " ^16" ,
59
59
"@cucumber/gherkin" : " ^26" ,
60
60
"@cucumber/messages" : " ^21.0.1" ,
61
+ "@xmldom/xmldom" : " ^0.7.9" ,
61
62
"acorn" : " ^7.4.1" ,
62
63
"arrify" : " ^2.0.1" ,
63
64
"axios" : " ^1.3.3" ,
138
139
"wdio-docker-service" : " ^1.5.0" ,
139
140
"webdriverio" : " ^8.3.8" ,
140
141
"xml2js" : " ^0.4.23" ,
141
- "xmldom" : " ^0.1.31" ,
142
142
"xpath" : " 0.0.27"
143
143
},
144
144
"engines" : {
Original file line number Diff line number Diff line change 1
1
const { expect } = require ( 'chai' ) ;
2
- const Dom = require ( 'xmldom' ) . DOMParser ;
2
+ const { DOMParser } = require ( '@ xmldom/xmldom' ) ;
3
3
const xpath = require ( 'xpath' ) ;
4
4
5
5
const Locator = require ( '../../lib/locator' ) ;
@@ -56,7 +56,7 @@ const xml = `<body>
56
56
57
57
describe ( 'Locator' , ( ) => {
58
58
beforeEach ( ( ) => {
59
- doc = new Dom ( ) . parseFromString ( xml ) ;
59
+ doc = new DOMParser ( ) . parseFromString ( xml , 'application/xhtml+xml' ) ;
60
60
} ) ;
61
61
62
62
describe ( 'constructor' , ( ) => {
You can’t perform that action at this time.
0 commit comments