Find Jobs
Hire Freelancers

Help With Casperjs code - getting error

$30-250 USD

Completed
Posted almost 9 years ago

$30-250 USD

Paid on delivery
Hello, I am trying to evaluate whether or not specific text appears on a webpage. If it is present the script should exit if not the script should continue. Here is the problem code: [login to view URL](function(){ counter = 0; }); [login to view URL](function(){ counter++; [login to view URL]('Checking for too many keywords: ' + counter); }); [login to view URL](1000, function(test){ if([login to view URL]('We can only show forecasts for up to 3,000 keywords', 'page contains more than 3000 keywords')){ if(counter >= 2){ [login to view URL]('Too Many Keywords'); screenshot('too_many_kewords'); [login to view URL](); }else{ [login to view URL]("keyword_total_ok"); } } }); Here is the error: TypeError: 'undefined' is not a function (evaluating '[login to view URL]('We can only show forecasts for up to 3,000 keywords', 'page contains more than 3000 keywords')') I pretyt mush don't know what I am doing. Just messing around really and trial and error trying to find something that works but it could take me years :-) If there is a better way to check for the text I'm fine with that. Just need a solution ASAP. Thanks!
Project ID: 8204704

About the project

6 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
HI, I can have a quick look at this now if you like? I work with Javascript and JQuery on a daily basis. I can also just give you another function to check the keyword count and return the message if there are too many keywords on the page. Look forward to hearing from you. Will
$111 USD in 1 day
0.0 (0 reviews)
0.0
0.0
6 freelancers are bidding on average $138 USD for this job
User Avatar
Hi, I'm interested to work on your project. Please let me know if you require any detailed information. Waiting for your reply Thanks Dev
$150 USD in 3 days
4.9 (34 reviews)
5.2
5.2
User Avatar
Hi, Can you give me current casperjs code with URL of website you intend to test? I can help you to resolve this issue, but its better if I can know exactly website + keyword you used for testing. Thanks, Duy
$222 USD in 1 day
5.0 (5 reviews)
4.9
4.9
User Avatar
Propunerea nu a fost încă furnizată
$147 USD in 0 day
3.4 (17 reviews)
4.8
4.8
User Avatar
Hi, We are professional JavaScript and Angular JS Developers, we assure you 100% best solutions, the error is simply saying the class or object "test" does not have any method with name assertTextExists, or if it exist you might be using in wring way. If you are interested let us know Thank You
$100 USD in 1 day
5.0 (1 review)
1.2
1.2

About the client

Flag of UNITED STATES
Andalusia, United States
5.0
172
Payment method verified
Member since Jul 9, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.