-
Notifications
You must be signed in to change notification settings - Fork 246
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
Dynamic .get() URLs #42
Comments
The next version will accept a callback function as the first argument for .get(function(context, data) {
return data.url
})
... |
The solution mentioned above is supported in the latest version. |
Thanks! Much appreciated! |
The latest commits supports a callback function as the URL argument as well as a formatted string. .get(init)
.follow('div.name > a')
.set({
'someNo': 'tr.no'
})
.get('http://somesite.com/%{someNo}/moreurl') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm failing a bit at getting data to pass into the .get, the url isn't directly encoded from the web page but rather a constructed url using an id number. I tried using data to construct it, but wasn't able to pass it to the get command. Thoughts?
Which fails because no data.url is undefined.
How might I go about passing data to the .get?
Best Regards
The text was updated successfully, but these errors were encountered: