Object not found in Windows Application.
Home › Forums › Ask Expert › Object not found in Windows Application.
- This topic has 13 replies, 2 voices, and was last updated 7 years, 10 months ago by Valentin ZAP.
-
AuthorPosts
-
February 6, 2017 at 3:27 pm #31022abhinav kumarParticipant
Hi,
We are trying to automate one of our Windows Application. But in The Login Page, the script is not able to identify the Login Textbox, hence aborting the flow.
There are a number of ‘Log In’ text written in that page that might be causing the issue.We have attached the screenshot of the Application page, Report and Script.
Kindly resolve the issue and let us know what changes need to be done.
Also let us know if there are any materials for automating Windows Application. And how we can handle intermittent PopUps.
Regards.
Abhinav KumarAttachments:February 6, 2017 at 3:56 pm #31023Valentin ZAPKeymasterHello Abhinavmalviya1992!
1. On your screenshots “Login” and “Password” labels in a bad quality. If ZAPTEST cannot recognise them, we recommend to use login header and related objects for “Login” and “Password” TextBoxes.
See the attached script. We created 3 objects and provided the simple script.
- Login Header: to determinate the relative position of TextBoxes.
- 2 relative objects for TextBoxes. Also we set Scalability to: “ParentSize” to avoid zooming issue.
Application("tmobile").View("login").Object("LoginHeader").Object("LoginTextEdit").Type "test"
Application("tmobile").View("login").Object("LoginHeader").Object("PasswordTextEdit").Type "test"
In case if “Login” and “Password” labels in a good quality, please use them instead of the Header object. Please let us know if you still have issue with that.
2. You can work with popups like with any other Windows application. To select the right window we have special properties:
- regexpwndclass
- regexwndtitle
If you have dynamic popups, you could create one application object with a view and use SetProperty method to change this parameters.
Thank you,
ZAPTEST Team.Attachments:February 6, 2017 at 4:39 pm #31024abhinav kumarParticipantStill not able to locate the object.
February 6, 2017 at 4:41 pm #31025Valentin ZAPKeymasterHello Abhinavmalviya1992!
Could you attach your script?
Thank you,
ZAPTEST Team.February 6, 2017 at 4:47 pm #31026abhinav kumarParticipantpfa
Attachments:February 6, 2017 at 4:53 pm #31027abhinav kumarParticipanthi,
Enclosing the screenshot of flow.
Object is not getting searched from second last snapshot.
Regards
AbhinavAttachments:February 6, 2017 at 5:48 pm #31028abhinav kumarParticipantHi,
I have few queries. Please explain them.
1. Our Window application is based on Adobe Flex technology. Can we automate it using ZAPTEST Free Edition. If yes then do we need any plugin for that. If No then how can we automate Adobe Flex based Windows Application using ZAPTEST.
2. What is ZAP-FIX. We found on internet that it is used to automate Adobe Flex based Window applications. How can we access ZAP-FIX and how to use it.
3. Is there any chance that application can have some security feature that does not allow it to automate using ZAPTEST.
Regards.
AbhinavFebruary 6, 2017 at 5:49 pm #31029abhinav kumarParticipantHi,
I have few queries. Please explain them.
1. Our Window application is based on Adobe Flex technology. Can we automate it using ZAPTEST Free Edition. If yes then do we need any plugin for that. If No then how can we automate Adobe Flex based Windows Application using ZAPTEST.
2. What is ZAP-FIX. We found on internet that it is used to automate Adobe Flex based Window applications. How can we access ZAP-FIX and how to use it.
3. Is there any chance that application can have some security feature that does not allow it to automate using ZAPTEST.
Regards.
AbhinavFebruary 6, 2017 at 9:08 pm #31030Valentin ZAPKeymasterHello Abhinavmalviya1992!
Thank you for the attached ZAP file. We have checked the file and did some corrections.
We can separate “Log In” text from button and label using “TextColor” property. To activate this feature the color should be different from 0,0,0 (Black). All settings we could set using workbench.
Please check the attached script, we changed the following items:
- Created new objects for TextBoxes labels
- Set the color for “Login” and “Password” objects (labels) as “1,1,1”. It will separate this objects from the “Login” button
- Created 2 related objects for TextBoxes and set “ParentSize” scalability option
- Set the color for “Login” button as “178,178,178” (we can use Color Picker), and then change the color tolerance to “10”
We checked script using Exist Method and Application Screenshot:
Application("QuickViewStart").View("TMobileLogin").Object("Login").Exist
Application("QuickViewStart").View("TMobileLogin").Object("Login").Object("LoginTextArea").Exist
Application("QuickViewStart").View("TMobileLogin").Object("Password").Exist
Application("QuickViewStart").View("TMobileLogin").Object("Password").Object("PasswordTextArea").Exist
Application("QuickViewStart").View("TMobileLogin").Object("LoginButton").Exist
All objects are successfully identified. Let us know if you have some questions.
Thank you,
ZAPTEST Team.Attachments:February 6, 2017 at 9:23 pm #31031Valentin ZAPKeymasterHello Abhinavmalviya1992!
1. Our Window application is based on Adobe Flex technology. Can we automate it using ZAPTEST Free Edition. If yes then do we need any plugin for that. If No then how can we automate Adobe Flex based Windows Application using ZAPTEST.
[b]Yes, we can automate it and we don’t need any plugin for doing it. Using the Windows system we should repeat all actions which we could perform during the manual testing but within ZAPTEST: we aren’t limited by system and could perform actions using the text and image -based objects.
[/b]2. What is ZAP-FIX. We found on internet that it is used to automate Adobe Flex based Window applications. How can we access ZAP-FIX and how to use it.
[b]ZAP-fiX is an older version, the new product is ZAPTEST and you could download it for free
[/b]3. Is there any chance that application can have some security feature that does not allow it to automate using ZAPTEST.
[b]Using the Windows system / MAC OS / Linux – no. We know only about Android devices when application has special SECURITY flag. This way we should recompile application without this flag for test purpose.
[/b]Thank you,
ZAPTEST Team.February 7, 2017 at 12:11 pm #31032abhinav kumarParticipantPFA, getting error when we click ‘Pick colour frm GUI map’. Can you please resolve this issue.
Attachments:February 7, 2017 at 1:25 pm #31033Valentin ZAPKeymasterHello Abhinavmalviya1992!
Could you please show the “details” of this exception? Also you probably could get the information about this exception using the system “Event Viewer”.
RnD team is working on resolving this issue.
Thank you,
ZAPTEST TeamFebruary 7, 2017 at 4:36 pm #31034abhinav kumarParticipantHi,
We are still not able to locate the objects in our Windows Application.
Can we have a WebEX meeting tomorrow somewhere between 12:30GMT to 13:30GMT. We can present our screen to you and you can check what the real issue is.Regards
AbhinavFebruary 7, 2017 at 5:40 pm #31035Valentin ZAPKeymasterHello Abhinavmalviya1992!
ZAPTEST Team will contact you.
Thank you,
ZAPTEST Team -
AuthorPosts
- You must be logged in to reply to this topic.