Find Jobs
Hire Freelancers

Help With Casperjs code - getting error

$30-250 USD

Terminado
Publicado hace más de 8 años

$30-250 USD

Pagado a la entrega
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 del proyecto: 8204704

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0
6 freelancers están ofertando un promedio de $138 USD por este trabajo
Avatar del usuario
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 en 3 días
4,9 (34 comentarios)
5,2
5,2
Avatar del usuario
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 en 1 día
5,0 (5 comentarios)
4,9
4,9
Avatar del usuario
Propunerea nu a fost încă furnizată
$147 USD en 0 día
3,4 (17 comentarios)
4,8
4,8
Avatar del usuario
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 en 1 día
5,0 (1 comentario)
1,2
1,2

Sobre este cliente

Bandera de UNITED STATES
Andalusia, United States
5,0
172
Forma de pago verificada
Miembro desde jul 9, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.