dAniel_rj
14 years agoOccasional Contributor
Waiting for a Item to make a click on it
Hi everyone!
I have a radmenu (telerik), and when i record my test, testcomplete records this:
However, some times the itens of the list load slowly, and testcomplete try to make a click in the object that not's visible yet.
So i checked the object of one item in this list, and try to make the testcomplete wait until this object stay visible. I did this:
I don't know what is happens, but testcomplete not recognize the rad menu as visible. I try allready exists, visibleonscreean, enabled.. nothing work.. i try this too... but don't work ...
Any idea of what i'm doing wrong?
I have a radmenu (telerik), and when i record my test, testcomplete records this:
w4 := w3.Panel('ctl00_ContentPlaceHolder1_ConsultaCurriculo1_RcbStatusCurriculo');
w4.DropDown;
w4.ClickItem('Agendado');
However, some times the itens of the list load slowly, and testcomplete try to make a click in the object that not's visible yet.
So i checked the object of one item in this list, and try to make the testcomplete wait until this object stay visible. I did this:
w4 := w3.Panel('ctl00_ContentPlaceHolder1_ConsultaCurriculo1_RcbStatusCurriculo');
w4.DropDown;
if w2.Panel('ctl00_ContentPlaceHolder1_ConsultaCurriculo1_RcbStatusCurriculo_DropDown').Panel(0).WaitTextNode(1,1000).visible then
w4.ClickItem('Agendado');
I don't know what is happens, but testcomplete not recognize the rad menu as visible. I try allready exists, visibleonscreean, enabled.. nothing work.. i try this too... but don't work ...
w4 := w3.Panel('ctl00_ContentPlaceHolder1_ConsultaCurriculo1_RcbStatusCurriculo');
w4.DropDown;
if w4.WaitItem('Agendado',1000).exists then
w4.ClickItem('Agendado');
Any idea of what i'm doing wrong?