Implementing phantomjs + casperjs in selenium c#

935 views
Skip to first unread message

Mark

unread,
Dec 4, 2014, 11:35:12 PM12/4/14
to phan...@googlegroups.com
Hello.. Im a newbie in this.. please help.. i'd searched for a couple of weeks now and still cannot run an application that using phantomjs with casperjs in selenium c#.

All I want in the output is search in google and get the result links in datagridview. I know there's a sample in casperjs named "googlelinks.js" but how can i get this result in a datagridview?

What's the best way? using System.Diagnostic.process? or selenium driver which i cannot call the casperjs.

Please3x help me!!!  Thanks in advance..

Jacek Migdał

unread,
Dec 7, 2014, 5:08:32 PM12/7/14
to phan...@googlegroups.com
I don't anything about C# Selenium, but maybe just do less steps at a time.

In particular casperjs is not selenium based so I got hard time
understand how it works.

E.g.:
1. Run JavaScript in PhantomJS, just follow tutorial:
http://phantomjs.org/
2. Then do some basic CasperJs tutorial. Still in JavaScript:
http://casperjs.org/
3. Then run CasperJS From your C# program:
http://stackoverflow.com/questions/25025828/deploy-casperjs-within-c-sharp-project

Many thanks,
Jacek
> --
> You received this message because you are subscribed to the Google Groups
> "phantomjs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phantomjs+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phantomjs.
> For more options, visit https://groups.google.com/d/optout.

Mark

unread,
Dec 8, 2014, 8:55:23 AM12/8/14
to phan...@googlegroups.com, ja...@migdal.pl
Thanks for the reponse,

I've already done that. It works! But if I want to use a webdriver? I can only call phantomjs. 
Anyways. I already solve my problem.. lolz..

Thank you sir.
Reply all
Reply to author
Forward
0 new messages