How to close web application through iteration.

Best practices, code snippets for common functionality, examples, and guidelines.
haye7889
Posts: 7
Joined: Thu Sep 07, 2017 2:31 pm

How to close web application through iteration.

Post by haye7889 » Thu Sep 07, 2017 3:01 pm

Hi, I'm trying to figure out how to close the web application I have through iterations.
First it will open IE, log in as a user, then close the IE browser.
Then it will repeat itself, but with Chrome.
However, I cannot figure out how to get it to close the application. I changed the path's class from ClientCaption to a variable so I can use data binding like I did for my start application, but whenever I run the test, its looking for ClientCaption instead of the variable I applied to it. The repository item is ClientCaption because it won't let me change it to my variable name.

Is there a way to iterate through opening a web application and then closing it in different browsers?
Here's my setup for it:
3 modules
Setup
- Start Application (with datasource bounded to IE and Chrome)

Parent
- Log in as user

Teardown
- Stop Application (with datasource bounded to IE and Chrome)

Thank you

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: How to close web application through iteration.

Post by qwertzu » Fri Sep 08, 2017 12:49 pm

Hi haye7889,

I would suggest creating a "Close Application" - action on the DOM element of your website.
This action should close the browser regardless of whether the website is opened with IE or Chrome.
CloseBrowser.png
I hope, this helps.

regards,
qwertzu
You do not have the required permissions to view the files attached to this post.

haye7889
Posts: 7
Joined: Thu Sep 07, 2017 2:31 pm

Re: How to close web application through iteration.

Post by haye7889 » Fri Sep 08, 2017 2:42 pm

Figured it out.
It worked! Thanks!!!