Failed to identify item on the second iteration
Posted: Wed Jun 03, 2015 5:29 pm
Hi,
I have the following xpath:
.//div[#'_container']/div/div/div/div/div[3]/ul/li[@id='btn-action-add']/a[@id='GRPMGMT_ADD_LINK']/span[1]
I works fine usually. Today I noticed that on the second iteration of my data driven test, the mouse somehow move to a bit above target the area, so no ul clickable, the dialog is not opened. So I stopped the Ranorex immediately. And then I click highlight in the repo for this item. it did identify the area above the target item. It looks like .//div[#'_container']/div/div/div/div/div[1]
In the screen shot area, it does catch a square area(which doesn't have visible UI element) above the target item. After refresh and re-highlight a couple of more times, the target area is identified.
I am not sure what causes that. The use cache for the parent folder is set to false. I modify the xpath to the following:
.//div[#'_container']/div[@class='contents']/div[@class='contents-body']/div[@class='inner']/div[@class='primary']/div[3]/ul/li[@id='btn-action-add']/a[@id='GRPMGMT_ADD_LINK']/span[1]
Not sure if it helps.
Any comments?
Thanks,
Betty
I have the following xpath:
.//div[#'_container']/div/div/div/div/div[3]/ul/li[@id='btn-action-add']/a[@id='GRPMGMT_ADD_LINK']/span[1]
I works fine usually. Today I noticed that on the second iteration of my data driven test, the mouse somehow move to a bit above target the area, so no ul clickable, the dialog is not opened. So I stopped the Ranorex immediately. And then I click highlight in the repo for this item. it did identify the area above the target item. It looks like .//div[#'_container']/div/div/div/div/div[1]
In the screen shot area, it does catch a square area(which doesn't have visible UI element) above the target item. After refresh and re-highlight a couple of more times, the target area is identified.
I am not sure what causes that. The use cache for the parent folder is set to false. I modify the xpath to the following:
.//div[#'_container']/div[@class='contents']/div[@class='contents-body']/div[@class='inner']/div[@class='primary']/div[3]/ul/li[@id='btn-action-add']/a[@id='GRPMGMT_ADD_LINK']/span[1]
Not sure if it helps.
Any comments?
Thanks,
Betty