1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-03 00:46:51 +02:00
Commit Graph

113 Commits

Author SHA1 Message Date
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
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
e4e98830a0 Feature/eval template (#651)
* Refactored use of eval

* Disable unstable unit test
2021-09-07 16:33:30 -04:00
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
5119d62838 Feature/#478 keyboard events (#618)
* Added support of pressin special keys

* Linting
2021-04-23 10:42:31 -04:00
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
3ddd9b82a8 Bugfix/#597 headers panic (#602)
* Remodeled HTTPHeaders

* Remodeled HTTPCookies

* Fixed cookie.Expires

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

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

* Added addition unit tests
2021-03-05 12:25:07 -05:00
6295919806 #593 handling non-200 status codes 2021-03-05 08:08:28 -05:00
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
7eed93721c Added support of computed styles (#570)
* Added support of computed styles

* Updated style updates

* Fixed linter issues

* Updated styles manipulation in static driver

* Updated e2e tests

* Updated methods

* Updated e2e tests

* Updated README
2020-11-20 20:09:21 -05:00
bd07b84736 Feature/#262 while loop (#567)
* Added new syntax and iterator

* Added FOR-WHILE loop

* Added 'FOR-DO-WHILE loop'
2020-11-10 19:16:22 -05:00
c0f8421eaf fix(html): WAIT_NAVIGATION doc 🐛 (#557) 2020-10-02 11:21:39 -04:00
63efc6721e Updated changelog 2020-09-14 22:25:32 -04:00
3187f54bf5 fix SCREENSHOT() param type check (#545) 2020-08-11 10:27:01 -04:00
24d8eedd4c Feature/doc markup (#543)
* Added release notes

* #509 fixedOCOD typo

* Updated values

* Updated comments

* Changed stdlib docs format

* Changed format of array in docs

* Use 'any' instead of 'value' in docs

* New format for optional params

* Updated docs for testing package

* Added namespace information
2020-08-07 21:49:29 -04:00
162dd07346 Feature/425 iframe navigation (#535)
* Updated navigation logic

* Fixed goroutine deadlock

* Fixed closing chan

* Added support of waiting for individual frame navigation

* Updated EventLoop API in order to avoid double closing of event sources

* Fixed attr retrieval

* Removed redundant println

* Updated DOM Readiness check
2020-07-13 14:13:03 -04:00
c9dfb79641 Added scroll options (#471)
* Added scroll options

* Updated dependencies

* Updates after code review

* Updates after review

* Added comments
2020-04-25 15:06:00 -04:00
453ba932eb Replaced Document with Page HTLM struct in Pagination helper function (#448) 2020-02-01 23:43:30 -05:00
4af0e0f15f Added possibility to load pages from memory (#434)
* Added possibility to load pages from memory

* Fixed indent
2020-01-04 12:57:41 -05:00
fe7b45df6e Bugfix/#399 navigation (#432)
* Refactored networking

* Some work

* Added event loop

* Renamed EventHandler to Handler

* wip

* Removed console logs

* Added DOMManager

* Refactored frame managment

* Fixes

* Fixed concurrency issues

* Fixed unit tests

* Improved EventLoop api

* Some fixes

* Refactored event loop.

* Improved logic of initial page load

* Cleaned up

* Fixed linting issues

* Fixed dom.Manager.Close

* SOme works

* Fixes

* Removed fmt.Println statements

* Refactored WaitForNavigation

* Removed filter for e2e tests

* Made Cookies Measurable

* Made Cookies KeyedCollection

* Fixes after code review

* Updated e2e tests for iframes

* Fixed iframe lookup in e2e tests

* Added comments
2019-12-24 18:47:21 -05:00
ad2ec2e817 build core.Functions with map 2019-10-15 21:06:48 +03:00
83dc0d2811 make core.Functions a struct 2019-10-15 11:40:36 +03:00
df390a629a Merge pull request #380 from MontFerret/refactoring/html-element
Removed redundant element value caching
2019-09-07 14:36:16 -04:00
012029f8d9 Updated comments 2019-09-07 14:03:17 -04:00
d144c618eb Added BLUR function 2019-09-07 12:59:37 -04:00
fcd0a21e75 Added click count (#377)
* Added click count
2019-09-07 01:59:32 -04:00
24370d8178 Refactored methods (#376)
* Refactored methods

* Fixed errors provided by go vet
2019-09-06 23:15:27 -04:00
c773509469 Added missed errors to HTMLElement interface (#375)
* Added missed errors to HTMLElement interface

* Fixed test suit
2019-09-06 21:02:41 -04:00
2d645434d8 Externalized common timeout values (#371)
* Externalized common timeout values

* Updated go.sum
2019-09-05 12:17:22 -04:00
9b762d32ee Feature/#360 default driver params (#372)
* Added default headers and cookies

* wip

* Added tests

* Added default headers and cookies to HTTP driver

* Removed unused struct prop
2019-09-05 11:49:21 -04:00
af1125c8e9 Added INPUT_CLEAR function (#366)
* Added INPUT_CLEAR function

* Fixed linting issue

* Fixed formatting
2019-09-01 16:09:35 -04:00
f39face8bf Bugfix/click (#355)
* Added ability to use ClickBySelector with an element

* Fixes

* Increased timeout time
2019-08-24 20:26:27 -04:00
11bf8c365a Fixed headers (#348)
* Fixed headers

* Added e2e for static pages
2019-08-04 17:25:47 -04:00
b323a984cc Added errors to ClickX methods and added existence check (#341)
* Added errors to ClickX methods and added existence check

* Fixes

* Return None from Iterator when an error occurs
2019-07-26 13:22:06 -04:00
7e6b3bf15d Feature/focus (#340)
* Added and implemented Focus and FocusBySelector methods

* Added e2e tests

* Updated CHANGELOG

* Fixed linting errors
2019-07-23 16:13:04 -04:00
14c487ca46 Updated pagination iterator (#338)
* Updated pagination iterator

* Added e2e test

* Fixed e2e tests
2019-07-23 12:44:30 -04:00
22382a0f61 Added namespace builder (#336)
* Added namespace builder

* Fixed linting issues

* Added extra check

* Updated e2e lib

* Renamed NamespaceBuilder to NamespaceContainer and changed func receivers

* Renamed NewLib to RegisterLib
2019-07-22 17:21:20 -04:00
63201148ac Added possibility to set custom viewport size (#334)
* Added possibility to set custom viewport size

* Fixed linting issue

* Renamed ScreenSize to Viewport

* Updated e2e test
2019-07-17 13:29:16 -04:00
347bae2e45 Feature/#265 dom manipulations (#329)
* Added SetInnerHTML method

* Added E2E tests

* Refactored GetInnerText* methods

* Updated e2e tests

* Moved related E2E tests to folders

* Added error message

* Added E2E tests

* Added E2E for static driver
2019-07-11 17:16:34 -04:00
7ce6797e9c Feature/#230 xpath (#322)
* Implemented XPath for CDP driver

* Added XPATH function

* Added e2e tests for CDP

* Fixed linting issues

* Added support of XPath to HTTP driver

* Fixed linting issues
2019-07-03 14:05:02 -04:00
84d662c2fc Fixed improper math operator used in calculating page load timeout (#319) 2019-06-25 15:33:42 -04:00
d7b923e4c3 Feature/#220 iframe support (#315)
* Refactored Virtual DOM structure
* Added new E2E tests
* Updated E2E Test Runner
2019-06-19 17:58:56 -04:00
6933798419 Bugfix/#295 arithmetic operators (#298)
* Some work

* Updated Add operator

* Updated Subtract operator

* Updated Subtract operator tests

* Added tests for multiplication

* Added division

* Updated the rest of operators
2019-05-19 12:12:11 -04:00
acf2f13dcb Linter Cleanups (#294)
* sync with MontFerret/ferret

* fix --param handling

When params is converted to map it uses strings.Split,
which slices a string into all substrings separated by :.

* remove impossible conditions nil != nil

* delete ineffectual assignments

* replace '+= 1' with '++'

* remove useless comparison with nil

* merge variable declarations

* remove bool comparison

* fix imports

* fix imports

* delete unused file

* use copy instead of loop

* delete unused DummyInterface

* remove unnecassary break statements

* tidy modules
2019-05-03 17:10:34 -04:00
de703513e4 Linter Cleanup (#276)
* linter cleanup

* fix default case
2019-03-29 10:48:51 -04:00
1cf260cd59 fix order of arguments (#269) 2019-03-19 12:32:28 -04:00
71c246dd17 Feature/#236 cookies (#242)
* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods
2019-03-15 19:59:05 -04:00