click method is very slow
Hi guys,
Click method is very slow, if I debug code line stay at method click about 20 seconds.
Specially when I must click object in order to exit from a drop down menu.
The time recognitionof the object is good...
Here my function:
Property ='idStr'
Value = '<nameid>'
function Button_Click(Property,Value)
{
try
{
var btt = Sys.Browser(VarBrowser).FindChild(Property, Value, 20)
if (!btt.exists)
Log.Error("Button" + Property +" doesn't exists " + e.message)
else
btt.Click ();
Sys.Browser(VarBrowser).Page("*").Wait();
}
catch(e)
{
Log.Error("Button " + Property + " Value: " + Value + " doesn't exists " + e.message)
}
finally
{
return true
}
}
To check the fact that the "Click" method takes a long time, please post two timestamps to the log (before and after "Click"). You can find a sample code below.
...
Log.Message(aqDateTime.Now());
btt.Click ();
Log.Message(aqDateTime.Now());
...
If the time difference is 20 seconds indeed, you can create a support case. Most probably, we will need to reproduce this slowness in our test lab for investigation. So, please be ready to provide us with access to your website.
Thank you!