I am using Silk4J 16 Hotfix 2 and I'm trying to automate a test. When pressing a button, a file open dialog appears and I need to specify a file to continue the test.
Unfortunately it is not possible to record locators for the object map using Locator Spy. I don't get the green rectangle around the dialog. The mouse cursor shows the hourglass cursor forever and the SAP activity indicator (not sure if that's the right name) is circulating forever.
When I close the dialog, everything returns to normal: the activity indicator stops, the hourglass turns into an arrow and the green rectangles appear.
To reproduce the issue, you can find such a dialog in this place:
- Go to
/nSPRO
- Choose the glasses icon called
SAP Reference IMG
- Go to
Payroll
- Go to
Payroll Germany
- Go to
Social insurance
- Go to
Recurring Adjustments
- Go to
Annual Adjustments
- Select the clock icon with the green checkmark of
Change HI Contribution Rates with Contribution Rate File
- In the following "Choose Activity" dialog, select the line
Import Contribution Rate File
- Click
Choose
- On the next page, click the stacked rectangle image behind
Path of Update File
.
This brings up a file selection dialog which has the same problems as mine. Note that in my particular case I don't have a text field like the one named "Path of Update file" and highlighted in yellow. I just have a button which opens the file selection dialog.
I have tried:
- I manually entered a series of
//Window[x]
locators where I increased the indexx
to see whether it will find the window - I did the same for
//Dialog[x]
When I use Au3Info
of AutoIt, it recognizes the dialog and the file name textbox. I get the following values for the textbox:
Class: Edit
Instance: 1
Name:
Advanced Mode: [CLASS:Edit; INSTANCE:1]
and some not so reliable coordinates. I tried to use this information in combination with a //TextField
and //Control
locator.