Cannot find textbox object on a Logon Dialog box
Home › Forums › Ask Expert › Cannot find textbox object on a Logon Dialog box
- This topic has 16 replies, 2 voices, and was last updated 6 years, 10 months ago by Kirill Bulatnikov.
-
AuthorPosts
-
June 14, 2017 at 12:48 am #31116Andrew ChanParticipant
Hi, I am using zaptest’s Relative Object to have it recognize a logon Dialog box of a eclipse application but failed. It is crutial for the script to be able to type a password in that field to logon. I have tried to have it relate to many text objects but none of them seem to get the textbox correctly recognized… Please help! (note: see sceenshot of how it looks like)
Attachments:June 14, 2017 at 11:03 am #31117Kirill BulatnikovParticipantHello and thanks for interesting in ZAPTEST
Can you please provide your script *.zap file and I will check what may be wrong.
Thanks,
ZAPTEST TeamJune 14, 2017 at 5:31 pm #31118Andrew ChanParticipantattaching zap file. Thanks.
Attachments:June 14, 2017 at 6:25 pm #31119Kirill BulatnikovParticipantHere you go. Try improved version.
Sometimes when you have many objects close to another it is hard to recognize it as a separate objects. In this case you need to use “OCR Partial” recognition type.June 14, 2017 at 6:48 pm #31120Andrew ChanParticipantno luck… I see from the recognized image that it is still bouncing everywhere (see attachment)
Attachments:June 14, 2017 at 7:06 pm #31121Kirill BulatnikovParticipantOK, probably that login dialog loaded with tiny delay and ZAPTEST trying to type to nonexistent item. Can you try to insert “wait 2” statement prior to populating a password.
Also you may try another version slightly edited by me.June 14, 2017 at 7:22 pm #31122Andrew ChanParticipantactually i think from the screenshot I can see a corner of the Login dialog box already. I just tried your v2 script, the parent password object is found but still not able to relate to the textbox. Attaching the result.
Attachments:June 15, 2017 at 1:08 am #31123Kirill BulatnikovParticipantCan you please share your test scenario with recorded video in it (I can see you are using recorder)?
You can also try another one slightly updated script:
June 15, 2017 at 6:51 pm #31124Andrew ChanParticipantTried v3. still no luck. I have attached in v4 the recorded scenario so you can see the sequence of the pop ups. Thanks for your continuous support.
Attachments:June 17, 2017 at 2:33 am #31126Kirill BulatnikovParticipantCan you please try next one script version – attached. I set another anchor for password text field and also added few lines to isolate a problem as it possible. If password will not populate this time – can you please provide screenshot of expanded result report.
June 19, 2017 at 9:25 pm #31127Andrew ChanParticipantHi, still no luck. Attached the screenshot of the report. Thanks.
Attachments:June 19, 2017 at 11:56 pm #31128Kirill BulatnikovParticipantGot it.
Please try next one versionIf this still no good you can try WA – comment line 13 and uncomment line 16.
Thanks,
ZAPTEST TeamJune 20, 2017 at 1:34 am #31129Andrew ChanParticipantHi, I tried the v6 and also tried your {tab} way but both didn’t work. However I realized something this time. For all the commands on the diaglog box (whether it being exist/type/click) none of it has the sign in diaglog box in focus! I recorded another view based on the dialog box and created the Sign In title bar as an object to show you what I mean. When in focus the Sign In title bar should be blue.
Attachments:June 20, 2017 at 1:44 am #31130Kirill BulatnikovParticipantYou can try insert following line to the script after line 11
Application(“ISSP Client”).SetProperty “regexpwndtitle”, “Sign In”
and then try to run script once again.
BTW didn’t you try to scan application itself and not from the recorder?
June 20, 2017 at 2:29 am #31131Andrew ChanParticipantI tried inserting the setproperty line into the script but that makes it failed when looking for the ‘Sign In’ titlebar object. Attaching the script here and let me know if I have done something wrong.
Attachments: -
AuthorPosts
- You must be logged in to reply to this topic.