Hi all
with OR condition ranorex xpath is not identifying the object ,please help how to write or condition for the below xpath
///a[@innertext='batqt0400_07252200_01_00_M00']/../..//div[4]/div[2]/*[@class = 'cm-chip-label processing ng-scope' or @class = 'undeline-text ng-binding md-default-theme']
ranorex xpath with or condition
Re: ranorex xpath with or condition
Hi,
Please post a Ranorex snapshot (NOT screenshot) of the problematic element. Without seeing, at very least, a Ranorex snapshot, there is not much anyone here can do or suggest. Thanks.
My best guess is that there are different (more or less) properties in given Class attribute or the problem is caused by indexes. But as said above, it's impossible to tell for sure without seeing snapshot.
Please post a Ranorex snapshot (NOT screenshot) of the problematic element. Without seeing, at very least, a Ranorex snapshot, there is not much anyone here can do or suggest. Thanks.
My best guess is that there are different (more or less) properties in given Class attribute or the problem is caused by indexes. But as said above, it's impossible to tell for sure without seeing snapshot.
Last edited by odklizec on Tue Aug 09, 2022 2:33 pm, edited 1 time in total.
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
-
- Posts: 9
- Joined: Thu Mar 24, 2022 11:46 am
Re: ranorex xpath with or condition
hi
Thank you so much for replying on our query and helping ,
i have attached the snapshot , i need to bind the xpath with or condition
since i pass this element pandax100_08082200_01_00_M00 then it should pick the subsequent order number
for that we have written two class xpath with Or but its showing syntax error
we are trying some thing like this but looks like this is not correct
///a[@innertext='batqt0400_07252200_01_00_M00']/../..//div[4]/div[2]/*[@class = 'cm-chip-label processing ng-scope' or @class = 'undeline-text ng-binding md-default-theme']
kindly help
Thank you so much for replying on our query and helping ,
i have attached the snapshot , i need to bind the xpath with or condition
since i pass this element pandax100_08082200_01_00_M00 then it should pick the subsequent order number
for that we have written two class xpath with Or but its showing syntax error
we are trying some thing like this but looks like this is not correct
///a[@innertext='batqt0400_07252200_01_00_M00']/../..//div[4]/div[2]/*[@class = 'cm-chip-label processing ng-scope' or @class = 'undeline-text ng-binding md-default-theme']
kindly help
You do not have the required permissions to view the files attached to this post.
Re: ranorex xpath with or condition
Hi,
Unfortunately, the snapshots you posted does not contain screenshots, so it's pretty hard to orient in the GUI, which appears t be quite complex.
Could you please create new snapshots with screenshots?
Also, neither of the snapshots return anything for this xpath:
not even this:
or this:
So there is most probably a problem with the class part of the xpath you trying to use as a condition? Or neither of the snapshots is in expected state?
And finally, there is no element with inner text a[@innertext='batqt0400_07252200_01_00_M00'] in either snapshot.
The only thing which works is something like this:But this returns 16 elements, which is most probably not what you are looking for?
So please, create new snapshots, containing visible screenshots and element, from which you want to start search for required elements.
Unfortunately, the snapshots you posted does not contain screenshots, so it's pretty hard to orient in the GUI, which appears t be quite complex.
Could you please create new snapshots with screenshots?
Also, neither of the snapshots return anything for this xpath:
Code: Select all
///a[@innertext='batqt0400_07252200_01_00_M00']/../..//div[4]/div[2]/*[@class='cm-chip-label processing ng-scope']
Code: Select all
/dom[@domain='beta.compasquality.siemens-info.com']//tag[#'main-container']//tag[@class='md-padding _md layout-xs-column layout-sm-column layout-row']//a[@innertext='batqt0400_07252200_01_00_M00']
Code: Select all
/dom[@domain='beta.compasquality.siemens-info.com']//tag[#'main-container']//tag[@class='md-padding _md layout-xs-column layout-sm-column layout-row']//*[@class='cm-chip-label processing ng-scope']
And finally, there is no element with inner text a[@innertext='batqt0400_07252200_01_00_M00'] in either snapshot.
The only thing which works is something like this:
Code: Select all
/dom[@domain='beta.compasquality.siemens-info.com']//tag[#'main-container']//a[@class='undeline-text ng-binding md-default-theme']
So please, create new snapshots, containing visible screenshots and element, from which you want to start search for required elements.
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