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

launch chrome with "enable logging"

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 26 Jun 2012, 07:54 AM
Hi, 

I want to launch chrome with arguments "--enable-logging --v=1".
As far as i can seee, chrome arguments are hardcoded in the LaunchNewBrowserInternal  
method. 


private static void LaunchNewBrowserInternal(string startUrl)
{
      string str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\Application\\chrome.exe");
      if (!System.IO.File.Exists(str))
      {
        str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Google\\Chrome\\Application\\chrome.exe");
        if (!System.IO.File.Exists(str))
          throw new FileNotFoundException("Chrome browser is not installed on this machine", str);
      }
      string arguments = string.Format("-new-window -home-page {0}", (object) startUrl);
      Process.Start(new ProcessStartInfo(str, arguments)
      {
        Verb = "open",
        WindowStyle = ProcessWindowStyle.Normal
      });
 }


But I can pass "arguments" to the public LaunchNewBrowser method. Is this a bug? 
thanks,
stefan.

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 29 Jun 2012, 01:31 PM
Hi Stefan,
it's seems that your post is basically a Feature Request. We already have this logged, you can track its progress here:
http://www.telerik.com/support/pits.aspx#/public/test-studio/11701

Currently we set the Chrome logging by default and there's no way not to set it.

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