Find Jobs
Hire Freelancers

Help With Casperjs code - getting error

$30-250 USD

Slutfört
Publicerad nästan nio år sedan

$30-250 USD

Betalning vid leverans
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

Om projektet

6 anbud
Distansprojekt
Senaste aktivitet nio år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd 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 Om 1 dag
0,0 (0 omdömen)
0,0
0,0
6 frilansar lägger i genomsnitt anbud på $138 USD för detta uppdrag
Använd 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 Om 3 dagar
4,9 (34 omdömen)
5,2
5,2
Använd 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 Om 1 dag
5,0 (5 omdömen)
4,9
4,9
Använd avatar
Propunerea nu a fost încă furnizată
$147 USD Om 0 dag
3,4 (17 omdömen)
4,8
4,8
Använd 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 Om 1 dag
5,0 (1 omdöme)
1,2
1,2

Om kunden

Flagga för UNITED STATES
Andalusia, United States
5,0
172
Verifierad betalningsmetod
Medlem sedan juli 9, 2012

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.