Teardown
Teardown
Hi, I have a problem. I have about 12 dialog boxes in each button close, in each window is called identically, but the windows have different names and look different in the repository, is the option to click this button with no difference in which window is located?
Maybe if (buttonzamknij.visible) do something ?
I will add that it is about returning to the state 0 for the next TC if the previous error pops up and the windows remain open, and does not want to run the program again from time to time
what is the best option to restore the program to state 0, bypassing the restart ?
Edit Support Team 2018-02-21: Merged posts
Maybe if (buttonzamknij.visible) do something ?
I will add that it is about returning to the state 0 for the next TC if the previous error pops up and the windows remain open, and does not want to run the program again from time to time
what is the best option to restore the program to state 0, bypassing the restart ?
Edit Support Team 2018-02-21: Merged posts
You do not have the required permissions to view the files attached to this post.
Re: Teardown
Hi,
Please upload at least two Ranorex snapshots, in which we can see and evaluate the xpaths. Please post also the xpath for [x] button, as you have it recorded in repo. Thanks.
Please upload at least two Ranorex snapshots, in which we can see and evaluate the xpaths. Please post also the xpath for [x] button, as you have it recorded in repo. Thanks.
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: Teardown
Here is snap
And here is xpath
as you can see the dialogue is called frxDialogForm4 in another it will be DialogForm5 but the ending is the same
Edit Support Team 2018-02-21: Merged posts
And here is xpath
as you can see the dialogue is called frxDialogForm4 in another it will be DialogForm5 but the ending is the same
Edit Support Team 2018-02-21: Merged posts
You do not have the required permissions to view the files attached to this post.
Re: Teardown
Hi,
OK, the problem is in the controlname attribute, which probably changes for each popup dialog? I would suggest to use xpath like this:
The additional attribute @windowextendedstyle~'DialogModalFrame' means, that the dialog is modal. It may help with identifying "modal" popups. But you need to test it with your AUT and other popups.
OK, the problem is in the controlname attribute, which probably changes for each popup dialog? I would suggest to use xpath like this:
Code: Select all
/form[@controlname~'frxDialogForm' and @windowextendedstyle~'DialogModalFrame' ]/?/?/button[@accessiblename='Zamknij']
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: Teardown
for each window I set the same or will the beginning be different for each window and only the second part of the modal common?
Re: Teardown
The xpath I provided should work with all popups, as long as their controlname contains "frxDialogForm" and windowextendedstyle atributte contains "DialogModalFrame". And of course, there must be available button[@accessiblename='Zamknij'].
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: Teardown
K thx i will test it tomorrow
Hello, unfortunately it probably does not work as it should or do something wrong, as I change the path to the above given, ranorex does not detect the window and how would I set all tfrxDialogForm class for all, because all of them have the same class parameter, and later wrote a code that would close all windows having this parameter selected?
Edit Support Team 2018-02-21: Merged posts
Hello, unfortunately it probably does not work as it should or do something wrong, as I change the path to the above given, ranorex does not detect the window and how would I set all tfrxDialogForm class for all, because all of them have the same class parameter, and later wrote a code that would close all windows having this parameter selected?
Edit Support Team 2018-02-21: Merged posts
Re: Teardown
Hi,
Well, have you checked the xpath of failed window? Unfortunately, it's impossible for me (or anyone else here) to suggest what's wrong, without access to the AUT or at very least, the snapshot of failing dialog.
Well, have you checked the xpath of failed window? Unfortunately, it's impossible for me (or anyone else here) to suggest what's wrong, without access to the AUT or at very least, the snapshot of failing dialog.
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: Teardown
HI, if I set cotrolname = ~ Regex Match its look work fine i write while loop
and this code close all window, but i heave another problem.
I heave 2 window FRM1 and FRM2 but on top is another window DLGDataSet to choose something how in code close all window FRM and DLG Snap Edit Support Team 2018-02-21: Merged posts
Code: Select all
while (repo.Test.Test.SelfInfo.Exists())
{
repo.Test.Test.Self.Close();
}
I heave 2 window FRM1 and FRM2 but on top is another window DLGDataSet to choose something how in code close all window FRM and DLG Snap Edit Support Team 2018-02-21: Merged posts
You do not have the required permissions to view the files attached to this post.
Re: Teardown
Well, apparently this dialog has different control name and different windowsextendedstyle. So in case you wish to create a 'universal' repo item, you need to extend the xpath with some more options. This xpath should find close button in both presented forms (modal and non-modal)...
/form[@controlname='DlgDataSetList' or (@controlname~'frxDialogForm' and @windowextendedstyle~'DialogModalFrame')]/?/?/button[@accessiblename='Zamknij']
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: Teardown
maybe something like this illuminates 3 windows?
Code: Select all
/form[@processname='Wm' and @controlname~'frxDialogForm' or @controlname~'Dlg']
Re: Teardown
Possibly, but it's up to you to test it with your AUT
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: Teardown
K that I tested works great, but I would like to add another window there, send a snap, some ideas ?
You do not have the required permissions to view the files attached to this post.
Re: Teardown
Hi,
I'm afraid, I'm not sure what exactly you want to do with this form? If it's still about 'Zamknij' buttons, then there is multiple of them in the snapshots, so you need to decide, which one you want to control and simply use the same approach as before. Simply add new control name to xpath.
I'm afraid, I'm not sure what exactly you want to do with this form? If it's still about 'Zamknij' buttons, then there is multiple of them in the snapshots, so you need to decide, which one you want to control and simply use the same approach as before. Simply add new control name to xpath.
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