I am facing an issue in Ranorex with my web app testing which is, when I am tracking login button of my website it is giving me 2 Ranorex paths. While using either of them, test case will fail for another path alternatively mostly.I have tried giving href with Ranorex path.
Will you be able to tell any solution if Ranorex gives 2 ,or more than this, paths for an element. Windows - 10, Chrome plug-in prominently, Let me know if you need more details.
Identifying 2 or more paths
Identifying 2 or more paths
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Identifying 2 or more paths
Hi,
Please post a Ranorex snapshot (not screenshot) and xpath you are using for identifying the element in question. Without at very least snapshot, there is not much anyone here can do or suggest. Basically, you must improve the xpath to return just one element.
Please post a Ranorex snapshot (not screenshot) and xpath you are using for identifying the element in question. Without at very least snapshot, there is not much anyone here can do or suggest. Basically, you must improve the xpath to return just one element.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Identifying 2 or more paths
Okay, PFA.
You do not have the required permissions to view the files attached to this post.
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Identifying 2 or more paths
x- paths :
Login 2 : /dom[@domain='citizennet.com']//a[#'login']
Login 3 : /dom[@domain='citizennet.com']/body/div[6]/div/div/div/div[2]/form[@name='loginForm']/?/?/button[@innertext='Login']
Login 2 : /dom[@domain='citizennet.com']//a[#'login']
Login 3 : /dom[@domain='citizennet.com']/body/div[6]/div/div/div/div[2]/form[@name='loginForm']/?/?/button[@innertext='Login']
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Identifying 2 or more paths
Hi,
I'm afraid, neither xpath works for any of the provided snapshot. This xpath works in both of them...
I'm afraid, neither xpath works for any of the provided snapshot. This xpath works in both of them...
/dom[@domain='citizennet.com']/body//form[@name='loginForm']/?/?/button[@innertext='Login']
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Identifying 2 or more paths
I tried your path, it is not working for me.
What else could be the solution for it ?
What else could be the solution for it ?
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Identifying 2 or more paths
Have you tried to open the xpath in Spy? Try to find this xpath:
/dom[@domain='citizennet.com']/body//form[@name='loginForm']
If this xpath is not found, then there is either no form with name loginForm or the domain name is different? If the loginForm is found, then there is most probably a problem with Login button?
/dom[@domain='citizennet.com']/body//form[@name='loginForm']
If this xpath is not found, then there is either no form with name loginForm or the domain name is different? If the loginForm is found, then there is most probably a problem with Login button?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Identifying 2 or more paths
Hey, I am able to find mentioned x path. I will check with dev. now. Thanks a lot for quick response.
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User