Page 1 of 1

website opened

Posted: 16 Apr 2014 06:58
by Ankit
Hi martin

Can automagic determine if a website is completely opened or loaded and not opening or loading..

Actually i want to perform some action when an website is completely opened..


If this is not present so this is my feature request for adding the trigger for same..

Thanx in advance.

Re: website opened

Posted: 17 Apr 2014 17:50
by Martin
Hi,

It's not possible to detect this and I think there's no API in Android to check for such an event.

Regards,
Martin

Re: website opened

Posted: 18 Apr 2014 02:16
by Ankit
Ok
Thanx for reply...

Re: website opened

Posted: 29 Aug 2014 18:04
by EBen
As a somewhat dirty workaround, you may try a control ui script checking if an element specific for the website exists and optionally if it has the expected size and position. This is a sample script:

pageloaded=0;
while(pageloaded<10)
{
sleep(1000);
bounds=getBounds("text of some element of site");
if(bounds!=null)
{
if((getElement(bounds,0)==15) AND (getElement(bounds,1)==185) AND (getElement(bounds,2)==361) AND (getElement(bounds,3)==30))
{
pageloaded=10;
}
}
pageloaded=pageloaded+1;
}