I´m developing a robot to copy data from a HTML web page.
The page contains DIVs that shows/hides some information.
The <A HREF> (HTML Code) calls a JS function to show/hide that information.
Is there a way from the "CODE" Action to interact with the page and call that JS Funtion?
I tried to create a new object from the window and used this code, but it didn't work:
Code: Select all
function(Call_JS){
var btnCtrls=document.getElementsByTagName('A');
for(i=0;i<btnCtrls.length;i++){
if(btnCtrls[i].text=='QUERY'){
btnCtrls[i].click();
break;
}
}
}