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

.click to work #47

Open
aguy004 opened this issue Sep 26, 2017 · 0 comments
Open

.click to work #47

aguy004 opened this issue Sep 26, 2017 · 0 comments

Comments

@aguy004
Copy link

aguy004 commented Sep 26, 2017

Hi all, I am fairly new to this and so any help would be appreciated.

I am trying to write a simple code to understand how this all works and then I will progress it further.
For the learning process I am using a site called: www.trademe.co.nz and I am wanting to take a screenshot of what the search function returns. I will then progress it to enter a username and password for a different project (internal website so I can't share it).

My code so far is below but whatever I try to do, I can't get it to click down on the search button (ignore code I have there for it now, it doesn't work) next to where the text is entered. Can someone please help me out? I have the devel version of webshot

#Configuration
library(webshot)

webshot("https://www.trademe.co.nz/",
eval = "casper.then(function() {

 this.sendKeys('input[name =searchString]', 'waitati');

    //this.click('#field field-right');
    // Wait 500ms
    this.wait(500);
    });"

)

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

No branches or pull requests

1 participant