1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
Commit Graph

58 Commits

Author SHA1 Message Date
Владимир Фетисов
3bb0ab183b pull master 2019-10-03 22:42:14 +03:00
Владимир Фетисов
d0f8b69241 handle Ptr kind 2019-09-30 20:42:05 +03:00
Tim Voronov
24370d8178
Refactored methods (#376)
* Refactored methods

* Fixed errors provided by go vet
2019-09-06 23:15:27 -04:00
3timeslazy
f87fe1e669 refactoring: .GetIn (#353)
* 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 :.

* implement GetIn for values.Object

* implement GetIn for values.Array

* rewrite GetIn because values.Object and values.Array implement core.Getter now

* fix bug when GetIn return nil instead of None

* add tests for Object and Array .GetIn

* add GetIn comment and remove 'len(byPath)' check

* fix GetIn comment
2019-08-20 22:00:15 -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
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
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
3timeslazy
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
3timeslazy
de703513e4 Linter Cleanup (#276)
* linter cleanup

* fix default case
2019-03-29 10:48:51 -04:00
Tim Voronov
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
Tim Voronov
376ad77404
Feature/#250 wait style (#255)
* Added support for parsed styles

* Added stdlib function.

* Added e2e tests

* Added e2e tests for STYLE_* functions
2019-03-13 14:51:30 -04:00
Tim Voronov
14dd7ac40b
Fixed incorrect String.length (#238)
* Fixed incorrect String.length
2019-02-24 13:21:34 -05:00
Tim Voronov
eb523f01cc
Feature/#221 mouse events (#237)
* Initial work

* Added MoveMouseByXY and ScrollByXY

* Fixed liniting issues
2019-02-23 17:52:01 -05:00
Tim Voronov
34c8c02258
Refactoring/externalized html (#234)
* Externalized HTML drivers

* Fixed unit tests

* Updated logging

* Added support to set default driver

* Updated GetIn and SetIn helpers
2019-02-19 18:10:18 -05:00
Tim Voronov
f8e061cc80
Move value specific Iterable and Iterator interfaces into core module (#233)
* Move value specific Iterable and Iterator interfaces into core module

* Update Makefile

Reverted test command

* Update collection.go

* Fixed wrong iterator usage

* Updated use of switch statements
2019-02-15 07:41:08 -05:00
Tim Voronov
1af8b37a0f
New type system (#232)
* New type system

* Fixed dot notation for HTML elements
2019-02-13 12:31:18 -05:00
3timeslazy
b3bcbda3b9 rename functions Parse<Type>P -> MustParse<Type>. while dined (#231) 2019-02-12 18:01:49 -05:00
Tim Voronov
e535f602d5 Added unit tests for Setter and Getter interfaces 2018-12-24 10:48:34 -05:00
Tim Voronov
5620be211c
Next (#214)
* Renamed DOCUMENT to PAGE

* Added PageLoadParams

* Added PageLoadParams

* Renamed LoadPageParams -> PageLoadParams

* Added support for context.Done() (#201)

* Bug/#189 operators precedence (#202)

* Fixed math operators precedence

* Fixed logical operators precedence

* Fixed array operator

* Added support for parentheses to enforce a different operator evaluation order

* Feature/#200 drivers (#209)

* Added new interfaces

* Renamed dynamic to cdp driver

* Renamed drivers

* Added ELEMENT_EXISTS function (#210)

* Renamed back PAGE to DOCUMENT (#211)

* Added Getter and Setter interfaces
2018-12-21 23:14:41 -05:00
Tim Voronov
a219e776ad
Switched from int to int64 (#188) 2018-11-30 19:31:08 -05:00
Tim Voronov
dc3de71554
Bug/#194 empty value (#195)
* Fixes

* Fixed path to HTMLElement.value
2018-11-28 07:39:12 -05:00
3timeslazy
612705ca3a Feature/#8 datetime (#153) 2018-10-31 19:26:36 -04:00
Tim Voronov
3472630e6f
Bug/#142 clauses and statements (#148) 2018-10-28 01:45:26 -04:00
Tim Voronov
549b4abd3b
Feature/#5 collect keyword alt (#141)
Implemented COLLECT key word
2018-10-24 21:30:05 -04:00
3timeslazy
ebea64da37 Feature/#10 values (#128)
* added VALUES function
* updated object.Compare
2018-10-22 18:24:53 -04:00
Tim Voronov
3939800299
#123 Renamed 'innerHtml' to 'innerHTML' (#133) 2018-10-16 19:33:02 -04:00
Tim Voronov
5f94b77a39
Feature/#7 numeric functions (#116)
* #7 Added ABS

* #7 Added ACOS

* #7 Added ASIN

* #7 Added ATAN

* #7 Added ATAN2

* #7 Added AVERAGE

* #7 Added CEIL

* #7 Added COS

* #7 Added DEGREES

* #7 Added EXP

* #7 Added EXP2

* #7 Added FLOOR

* #7 Added LOG

* #7 Added LOG2

* #7 Added LOG10

* #7 Added MAX

* #7 Added MEDIAN

* #7 Added MIN

* #7 Added PERCENTILE

* #7 Added PI

* #7 Added POW

* #7 Added RADIANS

* #7 Added RAND

* #7 Added RANGE

* #7 Added ROUND

* #7 Added SIN

* #7 Added SQRT

* #7 Added TAN

* #7 Added SUM

* #7 Added STDDEV_POPULATION

* #7 Added STDDEV_SAMPLE, VARIANCE_POPULATION, VARIANCE_SAMPLE
2018-10-13 21:07:28 -04:00
Tim Voronov
42757a2a5a
Feature/#105 elements count (#109)
* #105 Added ELEMENTS_COUNT function

* Some minor updates

* Invalid return type
2018-10-12 21:52:27 -04:00
3timeslazy
f91fbf6f8c Feature/#95 deepclone (#101)
* rename method Clone to Copy

* added Cloneable interface

* added Value to Cloneable interface

* implemented Cloneable intefrace by array

* implemented Cloneable interface by Object

* unit tests for Object.Clone

* move core.IsCloneable to value.go

* change Clone function

* move IsClonable to package values
2018-10-12 11:58:08 -04:00
3timeslazy
54c9857862 Bugfix/#97 array compare (#98)
* added some more unit tests for values.Array

* fix values.Array.Compare method

* added one more unit test
2018-10-11 09:54:20 -04:00
3timeslazy
b74e490624 Bugfix/#89 compare (#93)
* change object method Compare

* added unit tests for Compare method

* changed Compare method

* fix Compare method
2018-10-10 13:04:15 -04:00
Tim Voronov
05a7582bba
Feature/inner html element child (#82)
* SOme wokrd

* Renamed example

* Updated example
2018-10-08 20:20:40 -04:00
=
a51faf8d05 change Object.Get(key values.String) (core.Value, bool) to Object.Get(key values.String) (core.Value, values.Boolean) for consistency. 2018-10-07 23:55:12 +03:00
Tim Voronov
e0a7a8e6a1 Refactored types lib 2018-10-07 01:07:44 -04:00
Tim Voronov
e64ad4ec0e
Feature/#33 wait class function (#63)
* #33 Lib cleanup. Added WAIT_CLASS and WAIT_CLASS_ALL functions

* #33 Fixed attr update

* #33 HTMLElement.WaitForClass

* #33 Updated HTMLDocument.WaitForClass
2018-10-06 22:33:39 -04:00
Tim Voronov
ec2d6a659b
Feature/#9 array functions (#57)
* #9 Added 'APPEND' function

* #9 Added 'FIRST' function

* #9 Added 'FLATTEN' function

* #9 Added 'INTERSECTION' function

* #9 Added 'LAST' function

* #9 Added 'MINUS' function

* #9 Added 'NTH' function

* #9 Added 'OUTERSECTION' function

* #9 Added 'POP' function

* #9 Added 'POSITION' function

* #9 Added 'PUSH' function

* Fixed nil pointer exception in value parser

* #9 Added 'REMOVE_NTH' function

* #9 Added 'REMOVE_VALUE' function

* #9 Added 'REMOVE_VALUES' function

* #9 Added 'REVERSE' function

* #9 Added 'SHIFT' function

* #9 Added 'SLICE' function

* Removed meme

* #9 Added 'SORTED' function

* #9 Added SORTED_UNIQUE function

* #9 Added 'UNION' function

* #9 Added 'UNION_DISTINCT' function

* #9 Added 'UNIQUE' function

* #9 Added 'UNSHIFT' function

* #9 Made more strict optional arg validation

* #9 Fixed linting errors
2018-10-05 21:27:34 -04:00
David Landry
8942a5e584 Missed updating a bunch of identifiers 2018-10-05 19:40:09 -04:00
David Landry
a7ecc90973 Missed renaming some identifiers 2018-10-05 18:30:03 -04:00
David Landry
138f39d727
Merge branch 'master' into cleanup/fix-naming-convention 2018-10-05 17:42:28 -04:00
David Landry
31cb7c2762 Fix increment-decrement errors 2018-10-05 17:38:12 -04:00
David Landry
90c2c702e4 Rename variables and methods to match styleguide 2018-10-05 17:38:12 -04:00
Tim Voronov
3cb811c636 Fixed hashing 2018-10-05 15:17:22 -04:00
Tim Voronov
08b5f53451 Removed redundant nil check 2018-10-04 10:38:42 -04:00
Tim Voronov
d92d97da89
Merge pull request #35 from krishnakarthik1309/travis-ci
fix travis-ci(#28): use shell script instead of aliases
2018-10-04 10:32:44 -04:00
Tim Voronov
74fb7566ac Fixed parsing nil 2018-10-04 08:08:57 -04:00
krishnakarthik1309
acc48b5631 fix json_test.go: Parsing none(nil)
:
json should parse as (values) None if input is nil.
2018-10-04 17:30:33 +05:30
Tim Voronov
91fc6a1f4a #11 Added params 2018-09-28 21:04:16 -04:00
Tim Voronov
8b2e210317 Added possibility to use FOR loop in ternary expression 2018-09-27 19:05:56 -04:00
Tim Voronov
69a7295da5 Added .Clone() method to runtime Value 2018-09-27 11:53:26 -04:00