1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-23 21:54:45 +02:00
Commit Graph

153 Commits

Author SHA1 Message Date
Tim Voronov
2643321e0f Migration to lab (#526)
* Switched to Lab for e2e tests

* Switched to binary

* Updated lab installation

* Updated use of Lab installer

* updates

* Changed lab installation path

* Updated use of installer

* Works

* Added additional functions

* Updated some tests

* Updated go.sum

* Works

* Refactored assertions

* Added tests for testing.True

* Added tests for testing.None

* Added tests for testing.Lte

* Added tests for testing.Lt

* Added generic consturctor

* Added tests for testing.Len

* Added tests for testing.Gte

* Added tests for testing.Gt

* Added tests for testing.False

* Added tests for testing.Empty

* Added tests for testing.Fail

* Added tests for testing.Equal

* Added tests for testing.Include

* Updated urls in static page tests

* Fixed namespace unit tests

* Fixed unit test for testing.Len

* Updated E2E scripts

* Updaes

* Updated Chrome in CI/CD

* Added e2e for example test click.fql

* Added suite cases for example scripts

* Updated examples

* Updated

* Added type assertions

* Updated Chrome opts and disabled headers and cookies related tests

* Fixed iframes example

* Increased timeouts in navigation examples

* Updated value example

* Updated comments

* Disabled cookies examples

* Fixed static url

* Disabled headers examples

* Disabled UA test

* Simplified wait logic

* Added base testing module

* Fixes after codereview

* Disabled failing tests
2020-06-17 17:37:01 -04:00
Paul
aa058f3542 allow context cancellation in WAIT (#524)
* allow context cancellation in WAIT

* cancel context before running the program
2020-06-01 07:58:16 -04:00
Tim Voronov
c86eecd54c #485 missed namespace 2020-05-13 22:10:47 -04:00
Aleksandr Yakimenko
ed8e43e4c6 Add Path functions (#505)
* Add Path functions

* Add unit tests
2020-05-12 22:19:41 -04:00
Vladimir Fetisov
cbb4311b65 add strconv.Unquote into DecodeURIComponent (#499) 2020-05-07 22:34:21 -04:00
Vladimir Fetisov
9dd35add2c #496_fix_RandomToken_on_Windows (#497) 2020-05-04 20:46:07 -04:00
Vladimir Fetisov
83fa54e65a change file mode from 0222 to 0666 (#494) 2020-05-02 14:43:43 -04:00
Y.Horie
7d7253325e Add rand seed in RAND() (#483) (#484) 2020-04-27 23:04:38 -04:00
Tim Voronov
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
Tim Voronov
978108eca0 Added functions with correct names (#461) 2020-03-10 21:29:06 -04:00
Tim Voronov
e4464d9de9 Added missed datetime library (#462) 2020-03-10 21:18:04 -04:00
Tim Voronov
a16701e2b0 Updated comments for HTTP functions 2020-02-21 11:15:41 -05:00
Tim Voronov
67dc8703c7 Added HTTP methods (#452)
* Added HTTP methods

* Added unit tests

* Fixed linting issue

* Replaced localhost with 127.0.0.1

* Added random port generator

* Disabled http tests

* Disabled HTTP GET test
2020-02-21 11:06:45 -05:00
John Bampton
568c48ea71 Fix typos (#446) 2020-02-01 23:44:31 -05:00
Tim Voronov
453ba932eb Replaced Document with Page HTLM struct in Pagination helper function (#448) 2020-02-01 23:43:30 -05:00
Tim Voronov
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
Tim Voronov
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
3timeslazy
ae94075a42 add NewPairValueType 2019-10-21 20:11:47 +03:00
3timeslazy
86a143251b fix go vet 2019-10-21 19:27:20 +03:00
3timeslazy
474b340ad0 move parseWriteMode into parseParams 2019-10-21 19:02:44 +03:00
3timeslazy
2b3a82d720 fix parseWriteMode return 2019-10-21 18:35:35 +03:00
3timeslazy
892915c58d fix Write comment 2019-10-21 18:30:04 +03:00
3timeslazy
8171b6e1ed use tempFile at TestRead 2019-10-21 18:28:47 +03:00
3timeslazy
d1c5145a5b add IO::FS::WRITE function 2019-10-21 18:26:49 +03:00
3timeslazy
e6757b1f01 add IO::FS::READ function 2019-10-19 21:17:34 +03:00
3timeslazy
ad2ec2e817 build core.Functions with map 2019-10-15 21:06:48 +03:00
3timeslazy
83dc0d2811 make core.Functions a struct 2019-10-15 11:40:36 +03:00
3timeslazy
e5860934a4 move strings.ToUpper logic from code into core.Functions 2019-10-14 21:47:31 +03:00
Tim Voronov
df390a629a Merge pull request #380 from MontFerret/refactoring/html-element
Removed redundant element value caching
2019-09-07 14:36:16 -04:00
Tim Voronov
012029f8d9 Updated comments 2019-09-07 14:03:17 -04:00
Tim Voronov
d144c618eb Added BLUR function 2019-09-07 12:59:37 -04:00
Tim Voronov
fcd0a21e75 Added click count (#377)
* Added click count
2019-09-07 01:59:32 -04:00
Tim Voronov
24370d8178 Refactored methods (#376)
* Refactored methods

* Fixed errors provided by go vet
2019-09-06 23:15:27 -04:00
Tim Voronov
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
Tim Voronov
2d645434d8 Externalized common timeout values (#371)
* Externalized common timeout values

* Updated go.sum
2019-09-05 12:17:22 -04:00
Tim Voronov
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
Tim Voronov
af1125c8e9 Added INPUT_CLEAR function (#366)
* Added INPUT_CLEAR function

* Fixed linting issue

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

* Fixes

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

* Added e2e for static pages
2019-08-04 17:25:47 -04:00
Tim Voronov
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
Tim Voronov
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
Tim Voronov
14c487ca46 Updated pagination iterator (#338)
* Updated pagination iterator

* Added e2e test

* Fixed e2e tests
2019-07-23 12:44:30 -04:00
Tim Voronov
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
Tim Voronov
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
Tim Voronov
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
Tim Voronov
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
Tim Voronov
84d662c2fc Fixed improper math operator used in calculating page load timeout (#319) 2019-06-25 15:33:42 -04:00
Tim Voronov
2cfd1040a9 Added missed UA setting (#318)
* Added misset UA setting

* Update doc_ua.fql

* Delete ferret_embedding_basic.go
2019-06-25 12:51:51 -04:00
Tim Voronov
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
Tim Voronov
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