Find Jobs
Hire Freelancers

Help With Casperjs code - getting error

$30-250 USD

Finalizat
Data postării: aproape 9 ani în urmă

$30-250 USD

Plata la predare
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!
ID-ul proiectului: 8204704

Despre proiect

6 propuneri
Proiect la distanță
Activ: 9 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
Acordat utilizatorului:
Avatarul utilizatorului
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 în 1 zi
0,0 (0 recenzii)
0,0
0,0
6 freelanceri plasează o ofertă medie de $138 USD pentru proiect
Avatarul utilizatorului
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 în 3 zile
4,9 (34 recenzii)
5,2
5,2
Avatarul utilizatorului
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 în 1 zi
5,0 (5 recenzii)
4,9
4,9
Avatarul utilizatorului
Propunerea nu a fost încă furnizată
$147 USD în 0 zi
3,4 (17 recenzii)
4,8
4,8
Avatarul utilizatorului
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 în 1 zi
5,0 (1 recenzie)
1,2
1,2

Despre client

Steagul UNITED STATES
Andalusia, United States
5,0
172
Metoda de plată a fost confirmată
Membru din iul. 9, 2012

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.