Forum Discussion
Thank you Alex;
As Robert advice me in his last message to record action and click on the pop up message, it does'nt work for me that give the same name mapping (The webpage object).
I try your idea to use FindChildEx and i perform the script bellow
function ConfirmerSuppProfile(){
var page = Sys.Browser().WaitPage("*");
var prop=["ObjectType","contentText","VisibleOnScreen","Enabled"];
var values = ["Panel","Profile 'CONSULTATION' supprimé","True","True"];
var depth = 5;
var popupmsg = page.FindChildEx(prop,values,depth,true,1000);
if(popupmsg.Exists)
Log.Message("Profile consultation supprimé");
else
Log.Error("The object was not found");
}
when i chage the page it give me the same result!! :(
Is it possible to use the generated source of the web page, and how i can process, because i don't find any think related to the pop up message
Thanks
Hi,
> when i chage the page it give me the same result!!
Not sure what is 'the same result' and what actual result is, but a quick note about this line of code:
> var values = ["Panel","Profile 'CONSULTATION' supprimé","True","True"];
The last two values relate to the "VisibleOnScreen" and "Enabled" properties both of which are boolean while your code provides strings.
I would change the line to
var values = ["Panel","Profile 'CONSULTATION' supprimé",True,True];
and check whether it will help.