Forum Discussion
If you can map the object, we can check it. :)
So, essentially, here are your steps.
1) Using NameMapping and Aliases, make sure you map and capture the pop-up with all the appropriate identification details
2) Rather than recording, you will need to create an Object checkpoint to detect, after a certain activity, if the pop-up "exists" or is "visible" depending upon how things are implemented.
3) You might want to detect that "Dynamic" factor of the pop-up going away so, after you verify that it exists, insert some sort of delay or while loop or something to wait until the object no longer exists or is visible. This is your check, then, that the object has been re-hidden.
- AssiaDerias9 years agoOccasional Contributor
Thank you for your answer
But when i map the pop up message and check it in name mapping i realise that it is all the eb page page .
I have developpes a script that ensure tne chek of the pop up message can you verify it for me
function CheckProfile(){
if(Aliases.browser.pageIdzadmintcProfil.pageCreerProfil.panelModalContent.WaitProperty("VisibleOnScreen",true,20000))
{
Log.Picture (Aliases.browser.pageIdzadmintcProfil.pageCreerProfil.panelCreerProfil.panelModalContent," Profile CONSULTATION supprimé ");
}
}
I have attached a screen shot of may name mapping on the pop up message
Thank you for answer
- tristaanogre9 years agoEsteemed Contributor
That looks good from the best I can understand for the object. You check it's visibility then you log it and you're done. That SHOULD do what you're looking for.
As for your mapping, that's hard to say exactly what is better to do. This is something you may need to tweak but, if the code below is performing the task you want, than that's usually the best indicator of a well written test.- AssiaDerias9 years agoOccasional Contributor
Thank you Mr martin for your response
I still have error in execution of script because he did'nt recognize the napped object, in my last message i say that the mapped object in name mapping is related to All the pageweb
I change a script and it give result but I'm not convinced that the good one
here is my new script
function ValeurCodeProfile(){
if(Aliases.browser.pageIdzadmintcProfil.pageCreerProfil.WaitProperty("VisibleOnScreen",true,60000))
{
Log.Picture(Aliases.browser.pageIdzadmintcProfil.pageCreerProfil," Profile CONSULTATION supprimé ");
}
Thank you in advance