1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-22 03:39:08 +02:00

404 Commits

Author SHA1 Message Date
Tim Voronov
be360b4eb4 Added auto-marshalling to http functions 2022-07-30 15:12:48 -04:00
Norman Chan
80f21af219
Add more unit tests for operators (#742) 2022-06-04 16:21:18 -04:00
Norman Chan
db65fe9910
Add more unit tests for operators (#741) 2022-06-03 11:24:51 -04:00
Roman
70a8ef790b
fix go routines leakage (#726)
* fix go routines leakage

* Update manager.go

fmt

Co-authored-by: Tim Voronov <ziflex@users.noreply.github.com>
2022-02-10 15:42:07 -05:00
Tim Voronov
0c6d4e6401
Bugfix/http driver xpath (#725)
* Fixed XPath eval in http driver for attrribute values

* Added unit test to cover http XPath func eval

* Added integration test for covering XPath by CDP driver
2022-01-28 15:19:50 -05:00
Tim Voronov
8d8afed51f
Fixed element not found error (#724) 2022-01-17 10:24:27 -05:00
Tim Voronov
64f086a4a6
Tweaked parser for formatter (#723) 2022-01-12 16:52:07 -05:00
Tim Voronov
b0377c1bcc
Added support of parsing DateTime with a custom layout (#721)
* Added support of parsing DateTime with a custom layout
2022-01-02 23:40:42 -05:00
Tim Voronov
4e94caa55f
Fixed handling text nodes by XPath parser (#715)
* Fixed handling text nodes by XPath parser

* Formatting
2021-12-22 20:20:02 -05:00
Roman
5981260c56
Http driver (#709)
* feat(http): change method add headers to set headers

* feat(options): add default timeout adn user options

* feat(options): set default timeout

* feat(http): change init options adn remove trash code
2021-12-10 17:50:30 -05:00
Tim Voronov
265a40c92a
Fixed inability to use dynamic values in LIMIT clause (#706) 2021-12-09 10:26:02 -05:00
Tim Voronov
07e33580c6
Fixed precedence of logical operators (#704) 2021-12-09 00:12:02 -05:00
Tim Voronov
f7f17ea5b4
Feature/network events (#688)
* Added new network events

* Refactored runtime Event streaming

* Added support of using keywords as variables

* Added support of body property in response event

* Added example of subscription to network response

* Added example of subscription to network requests

* Fixed infinite loop bug

* Updated Google example

* Updated unit tests

* Reenamed Event to Message

* Fixed navvigation filtering by frame
2021-11-22 14:36:28 -05:00
Tim Voronov
06b17394ed Simplified event.Loop API 2021-10-23 21:16:50 -04:00
Tim Voronov
a17a0a1819
Added support of FILTER clause in WAITFOR EVENT expression (#685)
* Added support of FILTER clause in WAITFOR EVENT expression

* Fixed exampl query

* Fixed inability of using keywords as an object property
2021-10-22 23:54:11 -04:00
Tim Voronov
a049f30214
Fixed parsing escaped new line character (#677) 2021-10-17 23:11:27 -04:00
Tim Voronov
bd6463fa29
Bench (#683)
* Extended public API

* Refactored event loop

* Refactored parser

* Fixed unit tests

* Added --dry-run opt

* Added total alloc

* Added profiler

* Fixed driver registration
2021-10-16 17:24:54 -04:00
Tim Voronov
b3c19bff82
Feature/variables optimization (#673)
* Added optimization to FOR loops by disabling allocation if RETURN statement returns NONE

* Added support of ignoring expression results in variable declaration using '_' as a variable name
2021-09-20 12:01:47 -04:00
Tim Voronov
2f399c669e
Added support of error supression to inline expressions (#671)
* Added support of error supression to inline expressions
2021-09-20 00:53:00 -04:00
Tim Voronov
cf7763e2ff
Added a new example (#660) 2021-09-19 20:25:22 -04:00
Tim Voronov
847dda1f10
Feature/pre compiled eval scripts (#658)
* Added support of pre-compiled eval expressions

* Added unit tests for eval.Function

* Added RemoteType and RemoteObjectType enums

* Refactored function generation

* Refactored Document and Element loading logic

* Removed redundant fields from cdp.Page

* Exposed eval.Runtime to external callers

* Added new eval.RemoteValue interface
2021-09-19 19:35:54 -04:00
Tim Voronov
90427cd537
Feature/new selector type (#657)
* Added remote type reference resolver

* Added support of XPath query selector

* Added CDP e2e testss covering XPath integration

* Added additional CDP e2e tests covering XPath integration

* Added type check to QuerySelector casting function

* Fixed XPath e2e tests

* Fixed vuln issue

* Added support of XPath selectors to http driver

* Added e2e tests for XPAth
2021-09-16 21:40:20 -04:00
Tim Voronov
8f2957e6ca
Feature/optimized member expression (#653)
* Added new member path resolution logic

* Updated Getter and Setter interfaces

* Added ssupport of pre-compiled static member path

* Improved error handling
2021-09-08 21:01:22 -04:00
Tim Voronov
e4e98830a0
Feature/eval template (#651)
* Refactored use of eval

* Disable unstable unit test
2021-09-07 16:33:30 -04:00
Tim Voronov
5f361e9e1b
Added support of optional ignoring of errors to function calls (#652)
* Added support of optional ignoring of errors to function calls

* Added support of handling of source failure to optional chaining

* Updated unit tests
2021-09-06 22:21:20 -04:00
Tim Voronov
e6dd5689b4
Bugfix/e2e tests (#648)
* 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
2021-09-02 11:09:48 -04:00
Tim Voronov
25c97b86b8
Bugfix/#638 http driver multiple requsets (#642)
* Set DefaultConcurrency to 1

* Added unit test
2021-08-01 15:00:20 -04:00
ConaGo
bc5dd5feed
Tests variable (#641)
* added tests for runtime/expressions/variable
2021-07-28 10:47:23 -04:00
Tim Voronov
53bcfc92d4
Fixed use of deprecated CDP API methods (#637) 2021-07-16 23:45:18 -04:00
Tim Voronov
1d64cb5da7
Fixed nil pointer exception (#636) 2021-07-16 23:45:06 -04:00
Roman
62a0665a99
Fix cpu leakage (#635) 2021-07-16 17:58:11 -04:00
Tim Voronov
1d0617eb3b
Added support of optional chaining (#634) 2021-07-16 14:46:08 -04:00
Tim Voronov
742bdae0ae
Feature/#263 waitfor event (#590)
* Added new WAITFOR syntax

* Added support of event options

* Added support of options

* Added support of using WAITFOR EVENT in variable assignment
2021-07-13 21:34:22 -04:00
ConaGo
73e04fd60e
added tests for runtime/expressions/variable (#630)
* added tests for runtime/expressions/variable
2021-07-11 08:08:31 -04:00
Tim Voronov
833330e73c
values.Parse does not parse int64 (#621) 2021-05-04 15:20:40 -04:00
Tim Voronov
ae352e2e6b
Fixed selection of text containing special characters (#619) 2021-04-23 15:36:53 -04:00
Tim Voronov
5119d62838
Feature/#478 keyboard events (#618)
* Added support of pressin special keys

* Linting
2021-04-23 10:42:31 -04:00
Vladimir Fetisov
7601c903d9
issue-607: add object(array)Literal into memberExpression (#616) 2021-04-19 13:55:24 -04:00
Roman
46009da1e7
Fixes and changes 2 (#614)
* feat(core): added SourceErrorDetail

* fix(driver): fix sets user headers and cookies

* fix(driver): check users params on nil

* fix formating

* fix(tests): fix tests and change SourceErrorDetail
2021-04-09 09:58:42 -04:00
Tim Voronov
80c278ec6c Added .Walk() method to Parser 2021-04-08 23:37:16 -04:00
Tim Voronov
8a772851f4
Removed old CLI (#608)
* Removed old CLI

* Added mini-CLI for e2e tests
2021-04-08 18:46:17 -04:00
Roman
08e9054ba4
setting Input charset (#609)
* feat(driver): add Charset param

* feat(driver): add convert to UTF8 by input charset
2021-04-08 18:35:29 -04:00
Tim Voronov
3ddd9b82a8
Bugfix/#597 headers panic (#602)
* Remodeled HTTPHeaders

* Remodeled HTTPCookies

* Fixed cookie.Expires

* Update documentation
2021-03-27 12:47:13 -04:00
Tim Voronov
d55bce325c
Bugfix/#597 headers panic (#598)
* Remodeled HTTPHeaders

* Remodeled HTTPCookies
2021-03-26 12:01:00 -04:00
Tim Voronov
2f5954eca3 Added docs about statusCodes 2021-03-06 01:25:37 -05:00
Tim Voronov
b3118ca983
Added DOCUMENT_EXISTS function (#594)
* Added DOCUMENT_EXISTS function

* Added addition unit tests
2021-03-05 12:25:07 -05:00
Tim Voronov
ae7b5ce557 Added additional unit tests for LIKE operator 2021-03-05 08:11:41 -05:00
Tim Voronov
6295919806
#593 handling non-200 status codes 2021-03-05 08:08:28 -05:00
Tim Voronov
79566c3b76
Added support of ignoring page resources (#592)
* Added support of ignoring page resources

* Updatd pipeline scripts

* Updated comments
2021-02-19 11:40:30 -05:00
Tim Voronov
ff8c15eb67
Feature/#577 spa routing (#584)
* Added support of getting URL dynamically
2021-02-16 09:49:26 -05:00