Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for captcha detection (WIP) #65

Closed
wants to merge 47 commits into from
Closed

Conversation

jifeon
Copy link
Contributor

@jifeon jifeon commented Dec 9, 2015

Refs #57
🐗

wait for visible, pattern, page actions
back action #52
provide collection action - for cases when rules are not defined before actions are performed #64
postActions support
concurrent cases actions support - when we don't know what to do exactly
performance improved for wait action
actions results rule type - for cases when we don't need parse
possibility to use blank scopes for rules, for virtual rules which can get results from actions for example

Refs #57

🐗
@@ -457,7 +496,8 @@ PhantomEnvironment.prototype = _.create(Environment.prototype, /**@lends Phantom
var args = [].slice.call(arguments);
args = args.slice(3);
this._page.onResourceRequested(callback, /* @covignore */ function (requestData) {
debug('Resource requested %s', requestData.url);
// todo: decide, remove or leave
// debug('Resource requested %s', requestData.url);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's really annoying, what do you think @maZahaca

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. We can cut this. That was made only for testing work which is related to loading resources.

@jifeon jifeon changed the title Improvements for captcha detection Improvements for captcha detection (WIP) Dec 9, 2015
@@ -3,6 +3,8 @@ var vow = require('vow'),

function Environment(options) {
debug('Initializing...');

this._errbacks = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errback is callback for error )) In this particular case it's errbacks for evaluateJs fucntions. Sometimes we need to know that something going wrong. For example: if we use wait and on first iteration code fails, we should stop waiting. We add errback before wait and remove it when wait is completed.

@maZahaca
Copy link
Member

Am I right, that this PR includes #61 ?

EXIST: 'exist'
EXIST: 'exist',
BACK: 'back',
PROVIDE_COLLECTION: 'provideCollection'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is it for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes we do not know what are rules for parsing before actions are performed. Also we have conditional actions and last action can return collection to parse, this collection will be attached to the rule which actions are performed for.

@jifeon
Copy link
Contributor Author

jifeon commented Dec 10, 2015

Am I right, that this PR includes #61 ?

yep

jifeon and others added 5 commits December 17, 2015 19:38
use action results in next action
"show more" pagination

:boar:
waitForQuery action
transforms for all type of rules

:boar:
@jifeon jifeon force-pushed the feature-goose-babe branch from 7cf7df4 to a685dbe Compare December 24, 2015 20:21
jifeon and others added 21 commits January 15, 2016 02:08
PhantomEnvironment._page memory leak fixed

:boar:
…-goose-babe

# Conflicts:
#	lib/PhantomEnvironment.js
…-goose-babe

# Conflicts:
#	lib/PhantomEnvironment.js
pause action
wait reverted

:boar:
🐗
some screenshots disabled

:boar:
some screenshots disabled

:boar:
possible leak removed
phantom 2.1.1

:boar:
…action.rules

* Improved using rule.type = array for string results
* Added decodeURI action
browser env injection

:boar:
@jifeon jifeon force-pushed the feature-goose-babe branch from 6dcf779 to fc3476c Compare January 31, 2016 21:13
jifeon and others added 7 commits February 9, 2016 03:24
post transformations

:boar:
rules from actions fixed

:boar:
rules from actions fixed

:boar:
inject for rules received from actions

:boar:
possibility to return scope from actions together with collection etc.

:boar:
@maZahaca maZahaca closed this Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants