Using JS

Tuesday, October 6, 2015 3:55:47 PM
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 8:49:31 PM
Avatar
re: conchitabh on Tuesday, October 6, 2015 3:55:47 PM
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 10:52:04 PM
Avatar
re: inflectra.sarahx on 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


Statistics
  • Started: Tuesday, October 6, 2015 3:55:47 PM
  • Last Reply: Wednesday, October 7, 2015 10:52:04 PM
  • Replies: 2
  • Views: 520