-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed logger level * Fixed WAITFOR EVENT parser * Added tracing to Network Manager * Updated logging * Swtitched to value type of logger * Added tracing * Increased websocket maximum buffer size * Ignore unimportant error message * Added support of new CDP API for layouts * Switched to value type of logger * Added log level * Fixed early context cancellation * Updated example of 'click' action * Switched to val for elements lookup * Fixed unit tests * Refactored 'eval' module * Fixed SetStyle eval expression * Fixed style deletion * Updated logic of setting multiple styles
- Loading branch information
Showing
59 changed files
with
2,769 additions
and
1,504 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
12 changes: 8 additions & 4 deletions
12
...sts/dynamic/doc/wait/frame_navigation.fql → ...ts/dynamic/doc/wait/frame_navigation.fqlx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
LET doc = DOCUMENT("https://github.com/", { driver: "cdp" }) | ||
LET doc = DOCUMENT("https://www.montferret.dev/", { driver: "cdp" }) | ||
|
||
HOVER(doc, ".HeaderMenu-details") | ||
CLICK(doc, ".HeaderMenu a") | ||
CLICK(doc, "#repl") | ||
|
||
WAIT_NAVIGATION(doc) | ||
WAIT_ELEMENT(doc, 'main nav') | ||
WAITFOR EVENT "navigation" IN doc | ||
WAIT_ELEMENT(doc, '.code-editor-text') | ||
|
||
FOR el IN ELEMENTS(doc, 'main nav a') | ||
RETURN TRIM(el.innerText) | ||
RETURN doc.url |
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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
LET doc = DOCUMENT('https://www.theverge.com/tech', { | ||
driver: "cdp" | ||
driver: "cdp", | ||
ignore: { | ||
resources: [ | ||
{ | ||
url: "*", | ||
type: "image" | ||
} | ||
] | ||
} | ||
}) | ||
|
||
WAIT_ELEMENT(doc, '.c-compact-river__entry', 5000) | ||
LET articles = ELEMENTS(doc, '.c-entry-box--compact__image-wrapper') | ||
LET links = ( | ||
FOR article IN articles | ||
FILTER article.attributes?.href LIKE 'https://www.theverge.com/*' | ||
RETURN article.attributes.href | ||
) | ||
|
||
FOR link IN links | ||
// The Verge has pretty heavy pages, so let's increase the navigation wait time | ||
NAVIGATE(doc, link, 20000) | ||
WAIT_ELEMENT(doc, '.c-entry-content', 5000) | ||
WAIT_ELEMENT(doc, '.c-entry-content', 15000) | ||
LET texter = ELEMENT(doc, '.c-entry-content') | ||
RETURN texter.innerText |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ LET p = DOCUMENT("https://www.gettyimages.com/", { | |
} | ||
}) | ||
|
||
RETURN NONE | ||
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
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 |
---|---|---|
|
@@ -11,6 +11,6 @@ CLICK(song) | |
WAIT_ELEMENT(doc, ".l-listen-hero") | ||
|
||
RETURN { | ||
page: page.url, | ||
current: page.url, | ||
first: doc.url | ||
} |
Oops, something went wrong.