We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94a82d4 + 9c944e5 commit 4beabefCopy full SHA for 4beabef
assets/js/Services/Html.js
@@ -429,13 +429,6 @@ export const findXpathFromElement = (element) => {
429
430
export const findElementWithXpath = (content, xpath) => {
431
432
- if(xpath.startsWith('/html[1]/body[1]/main[1]/')) {
433
- xpath = xpath.replace('/html[1]/body[1]/main[1]/', '/html[1]/body[1]/')
434
- }
435
- else if (xpath.startsWith('/html[1]/body[1]/div[1]/')) {
436
- xpath = xpath.replace('/html[1]/body[1]/div[1]/', '/html[1]/body[1]/')
437
438
-
439
if(xpath.startsWith('/')) {
440
xpath = xpath.substring(1)
441
}
0 commit comments