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.
website opened
Moderator: Martin
Re: website opened
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
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
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;
}
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;
}