forked from MontFerret/ferret
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from bundleman/pr53
Pr53
- Loading branch information
Showing
295 changed files
with
4,345 additions
and
2,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LET url = @lab.cdn.dynamic | ||
LET doc = DOCUMENT(url, { driver: "cdp" }) | ||
|
||
LET el = ELEMENT(doc, "#do-not-exist") | ||
|
||
T::NONE(el) | ||
|
||
RETURN TRUE |
8 changes: 8 additions & 0 deletions
8
e2e/tests/dynamic/element/query/element_not_found_by_xpath.fql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LET url = @lab.cdn.dynamic | ||
LET doc = DOCUMENT(url, true) | ||
|
||
LET el = ELEMENT(doc, X("//*[@id='do-not-exist']"))? | ||
|
||
T::NONE(el) | ||
|
||
RETURN TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LET doc = DOCUMENT(@lab.cdn.dynamic + "/#/lists", { driver:"cdp" }) | ||
|
||
LET current = ELEMENT(doc, "body") | ||
T::NOT::NONE(current) | ||
LET next = current.nextElementSibling | ||
T::NONE(next) | ||
|
||
RETURN NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LET doc = DOCUMENT(@lab.cdn.dynamic + "/#/lists", { driver:"cdp" }) | ||
|
||
LET current = ELEMENT(doc, 'head') | ||
T::NOT::NONE(current) | ||
LET prev = current.previousElementSibling | ||
T::NONE(prev) | ||
|
||
RETURN NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LET url = @lab.cdn.dynamic | ||
LET page = DOCUMENT(url, true) | ||
|
||
LET actual = XPATH(page, "//body/@class") | ||
|
||
T::NOT::EMPTY(actual) | ||
|
||
RETURN T::EQ(actual[0], "text-center") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LET doc = DOCUMENT("https://www.google.ca", { | ||
driver: 'cdp' | ||
}) | ||
|
||
RETURN XPATH(doc, "//meta/@charset") // ["UTF-8"] |
Oops, something went wrong.