I am trying to complete a POC in order to go with license purchase for my organization. While doing same I am not able to progress further as a window is displayed with fields whose path is detected but when run error reported says element not found. Please suggest some way to overcome this
Element Repository displays as:
Run 1:
.//div[#'apex_dialog_1']/iframe[@src='https://connectsa.northgateps.com/pls/h ... iHFshzKqfg']//span[#'select2-P413_PEXP_HRV_PEXT_CODE-container']
Run 2:
.//div[#'apex_dialog_1']/iframe[@src='https://connectsa.northgateps.com/pls/h ... UWwlQldVyA']//span[#'select2-P413_PEXP_HRV_PEXT_CODE-container']
every time a new element with post fix 1, 2...is added
iframe fields detection by recorder issue
iframe fields detection by recorder issue
You do not have the required permissions to view the files attached to this post.
Re: iframe fields detection by recorder issue
Hi,
It seems like the iFrame source is dynamic. One time it is "'https://connectsa.northgateps.com/pls/h ... iHFshzKqfg" the next time it is "https://connectsa.northgateps.com/pls/h ... UWwlQldVyA']".
So, I would recommend using a RegEx (Regular Expression) in your path and only using the part of the URL which stays the same.
A RegEx is defined by a ~ instead of a = in the path.
So I guess, in your case you could use the following path:
.//div[#'apex_dialog_1']/iframe[@src~'https://connectsa.northgateps.com/pls/']//span[#'select2-P413_PEXP_HRV_PEXT_CODE-container']
If this does not help, please upload a Ranorex Snapshot (No Screenshot) so we can get a picture of your application's structure.
regards, qwetzu
It seems like the iFrame source is dynamic. One time it is "'https://connectsa.northgateps.com/pls/h ... iHFshzKqfg" the next time it is "https://connectsa.northgateps.com/pls/h ... UWwlQldVyA']".
So, I would recommend using a RegEx (Regular Expression) in your path and only using the part of the URL which stays the same.
A RegEx is defined by a ~ instead of a = in the path.
So I guess, in your case you could use the following path:
.//div[#'apex_dialog_1']/iframe[@src~'https://connectsa.northgateps.com/pls/']//span[#'select2-P413_PEXP_HRV_PEXT_CODE-container']
If this does not help, please upload a Ranorex Snapshot (No Screenshot) so we can get a picture of your application's structure.
regards, qwetzu
Re: iframe fields detection by recorder issue
Hi,
Additionally to what qwertzu suggested, I would suggest to check this blog about automating apps with dynamic IDs...
https://www.ranorex.com/blog/automated- ... namic-ids/
Additionally to what qwertzu suggested, I would suggest to check this blog about automating apps with dynamic IDs...
https://www.ranorex.com/blog/automated- ... namic-ids/
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: iframe fields detection by recorder issue
Thanks for your reply guys.
I was able to resolve it by not selecting the iframe path and going with uniqueID or Title or Class and it works well.
I was able to resolve it by not selecting the iframe path and going with uniqueID or Title or Class and it works well.