Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-06-20 06:00 PM
Hi,
Could anyone offer some advice regarding spying PopUps that are not routine (ie, they may not always Pop Up at this time)
I am happy with the concept that spying PopUps requires a separate Object, and can successfully handle PopUps that occur routinely throughout the application that I am modelling.
The issue I have is in instances when a PopUp may or may not occur. Ordinarily I would 'Attach' the PopUp handling object, and then use a Wait Stage, with a 'Check Exists' to handle PopUps I know are going to occur - however in order to use 'Check Exists' the object needs to have attached, however if you don't know if the PopUp is going to be active at this point, you cant attach (as if the PopUp hasn't launched, this will generate an error).
So my question is - if a PopUp 'MAY' occur at some point in an application, rather than 'WILL' occur - how do you handle that?
Many thanks,
T
Could anyone offer some advice regarding spying PopUps that are not routine (ie, they may not always Pop Up at this time)
I am happy with the concept that spying PopUps requires a separate Object, and can successfully handle PopUps that occur routinely throughout the application that I am modelling.
The issue I have is in instances when a PopUp may or may not occur. Ordinarily I would 'Attach' the PopUp handling object, and then use a Wait Stage, with a 'Check Exists' to handle PopUps I know are going to occur - however in order to use 'Check Exists' the object needs to have attached, however if you don't know if the PopUp is going to be active at this point, you cant attach (as if the PopUp hasn't launched, this will generate an error).
So my question is - if a PopUp 'MAY' occur at some point in an application, rather than 'WILL' occur - how do you handle that?
Many thanks,
T
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-06-20 06:16 AM
Hi Tony,
The other issue here is you do not want to introduced a fixed delay in a time out for the pop up box into the process. This slows it down unnecessarily as pop up is just occasion.
The answer is to check for something that exists when the pop up does NOT occur in a time out. Only when that times out should you check for a pop up. Now you can try the attach in an exception block and if it fails you know the pop up is not there. In this case the expected result and the pop up has not occurred and you must raise an error. If you do attach successfully to the pop up then you can handle that and continue.
hope that logic helps 🙂
peter
------------------------------
PeterLacken
Ren Røros Intelligent Automation
Peter.Lacken@rria.no
http://www.rria.no
------------------------------
The other issue here is you do not want to introduced a fixed delay in a time out for the pop up box into the process. This slows it down unnecessarily as pop up is just occasion.
The answer is to check for something that exists when the pop up does NOT occur in a time out. Only when that times out should you check for a pop up. Now you can try the attach in an exception block and if it fails you know the pop up is not there. In this case the expected result and the pop up has not occurred and you must raise an error. If you do attach successfully to the pop up then you can handle that and continue.
hope that logic helps 🙂
peter
------------------------------
PeterLacken
Ren Røros Intelligent Automation
Peter.Lacken@rria.no
http://www.rria.no
------------------------------
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-06-20 06:16 AM
Hi Tony,
The other issue here is you do not want to introduced a fixed delay in a time out for the pop up box into the process. This slows it down unnecessarily as pop up is just occasion.
The answer is to check for something that exists when the pop up does NOT occur in a time out. Only when that times out should you check for a pop up. Now you can try the attach in an exception block and if it fails you know the pop up is not there. In this case the expected result and the pop up has not occurred and you must raise an error. If you do attach successfully to the pop up then you can handle that and continue.
hope that logic helps 🙂
peter
------------------------------
PeterLacken
Ren Røros Intelligent Automation
Peter.Lacken@rria.no
http://www.rria.no
------------------------------
The other issue here is you do not want to introduced a fixed delay in a time out for the pop up box into the process. This slows it down unnecessarily as pop up is just occasion.
The answer is to check for something that exists when the pop up does NOT occur in a time out. Only when that times out should you check for a pop up. Now you can try the attach in an exception block and if it fails you know the pop up is not there. In this case the expected result and the pop up has not occurred and you must raise an error. If you do attach successfully to the pop up then you can handle that and continue.
hope that logic helps 🙂
peter
------------------------------
PeterLacken
Ren Røros Intelligent Automation
Peter.Lacken@rria.no
http://www.rria.no
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-06-20 07:07 PM
Thanks Peter, That was really helpful.
Much appreciated 🙂
------------------------------
Tony Hann
------------------------------
Much appreciated 🙂
------------------------------
Tony Hann
------------------------------
