Scott M.
unread,Feb 13, 2012, 2:44:31 PM2/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi,
I'm trying to get some logging data in google chrome as I am getting
the 'Aw, Snap!" screen on our build server when the tests run in
interactive mode in TFS.
I'm using Selenium 2.18.0 with ChromeDriver 18.0.1022.0 and Chrome
17.0.963.46.
The OS I'm using is Win7 and Win2008.
When I try the following code to enable logging, the chrome_debug.log
file shows up as empty (0kb):
List<string> switches = new List<string>();
ICapabilities capabilities =
DesiredCapabilities.Chrome();
switches.Add("--enable-logging");
ChromeOptions option = new ChromeOptions();
option.AddArguments(switches);
_driver = new ChromeDriver(option);
I have also tried this as well but I still get no data in the log
file:
List<string> switches = new List<string>();
ICapabilities capabilities =
DesiredCapabilities.Chrome();
switches.Add("--enable-logging");
switches.Add("--v=1");
ChromeOptions option = new ChromeOptions();
option.AddArguments(switches);
_driver = new ChromeDriver(option);
What is the correct usage to get logging enabled for Google Chrome in
C#?
thanks,
S~