Using JS

Tuesday, October 6, 2015
Avatar
Hi, im new using  rapise, i have a question.... How can i use 'document.getElementById' from javascript?
And also, i cant use alert from javascript

Thanks in advance

conchitabh
2 Replies
Wednesday, October 7, 2015
Avatar
inflectra.sarahx
re: conchitabh Tuesday, October 6, 2015
Hi Concepcion

There is a way (using ExecJS) to send commands directly to the browser, however it is not the recommended way of doing things. Rapise works by learning 'objects' that map to physical elements on the web page. I would try following the Rapise Quick Start Guide to get a feel for how this works. In particular, the section on using the WebSpy should help you get going.

Regards
Sarah.
Wednesday, October 7, 2015
Avatar
re: inflectra.sarahx Wednesday, October 7, 2015
Hi, thank you, I tried with this:
var saludo ='hello';
Navigator.DoCheckAlert(saludo);
But why is not working?

The error says: Browser popup message missing: hello

I'm using Google Chrome as navigator


Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, October 6, 2015
  • Last Reply: Wednesday, October 7, 2015
  • Replies: 2
  • Views: 2203