This is a migrated thread and some comments may be shown as answers.

Cannot LaunchNewBrowser Chrome as minimized window

1 Answer 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 20 Feb 2014, 05:45 AM
Hi, I just started playing with the Telerik Testing Framework and I have been able to do a lot of cool things, but I have also discovered a lot of stumbling blocks along the way. My first problem is that I cannot create a chrome browser window that starts minimized. I can do this with internet explorer just fine, but it seems to be ignored by chrome. Why is that? Here's a quick sample VB code:

Dim oSettings As Settings = New Settings()
  
oSettings.Web.DefaultBrowser = BrowserType.Chrome
  
Dim oManager As Manager = New Manager(oSettings)
  
oManager.Start()
oManager.LaunchNewBrowser(oSettings.Web.DefaultBrowser, True, ProcessWindowStyle.Minimized)

To be honest I would actually prefer the ProcessWindowStyle.Hidden option but I read somewhere that it doesn't work. Is Minimized the same thing? Why are these offered as options if they do not work? I am able to use pinvoke to minimize and hide the window *AFTER* the telerik framework has been enabled for automation, but this takes a few seconds and I would really prefer not to see that screen popup everytime I am running a new test. Is there any way to get this to work with chrome?

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 20 Feb 2014, 02:25 PM
Hello James,

Thank you for contacting us.

I was able to reproduce this issue. I have logged a bug report on our feedback portal.

You can track it here.

As a workaround you can use this code, which will minimize the browser:

oManager.ActiveBrowser.Window.Minimize()

Hope that helps.

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or