Cannot LaunchNewBrowser Chrome as minimized window

2 posts, 0 answers
  1. James
    James avatar
    8 posts
    Member since:
    Feb 2014

    Posted 19 Feb 2014 Link to this post

    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.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?
  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 20 Feb 2014 Link to this post

    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:


    Hope that helps.

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top