Ask a Question

Closing chrome is hard

SOLVED
loricotton
Contributor

Closing chrome is hard

I have so many option to try and close chrome.

The SYS.WaitBrowser().close  will cause an error as it goes one time to many

The Sys.WaitBrowser("chrome").close()  works the best but get the error message "Chrome is working in the background which causes a yellow on the log.

The Sys.WaitBroswer.Terminate("chrome) works but the next time chrome is open login screens do not work as they should.

 

Why can't a simple .close  work?

Why can't we get a number of windows that are open?

I have spent way to many hours with every option and can not get it to work with a green status

 

2 REPLIES 2
Marsha_R
Community Hero

Try something similar to the CloseAllNotepads example here:

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/window-and-process/cl...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
ebarbera
Staff

Hello @loricotton - 

 

I would suggest - Sys.browser.BrowserWindow.Close()

 

This is what I use - let me know if you have questions.

 

Emma

cancel
Showing results for 
Search instead for 
Did you mean: