selenium - Chrome 60 enable logging in headless mode -


i'm using geb (selenium & webdrivers 3.40) chrome 60 on windows 7 enterprise.

my gebconfig.groovy defines chrome environment configures chrome following start arguments --headless --disable-gpu --disable-plugins --enable-logging --v=1.

environments {      chrome {         chromedrivermanager.instance.setup()         driver = {              chromeoptions options = new chromeoptions()             options.addarguments('--headless', '--disable-gpu', '--disable-plugins', '--enable-logging', '--v=1')              def capabilities = desiredcapabilities.chrome()             capabilities.setcapability(chromeoptions.capability, options)              def driver = new chromedriver(capabilities)             return driver         }     } } 

according post chrome should log ~/.config/google-chrome after running geb tests cannot find log on path. i'm trying enable log since have trouble connecting internal website using https , need more information on going wrong.

can tell me how enable log correctly , can find google chromes log output?

update 1:

according documentation log saved under %localappdata%\google\chrome\user data\chrome_debug.log. found log empty. since cannot seem connect on ssl wonder how can chrome tell me problem lies. ideas?

update 2:

it seems whenever ran tests in --headless mode , accessing internal https url following dummy html web driver.

<!doctype html> <html> <head>     <title></title> </head> <body>     <pre style="word-wrap: break-word; white-space: pre-wrap;"></pre><iframe name="chromedriver dummy frame" src="about:blank"></iframe> </body> </html> 

in servers log cannot see incoming http request. know such behaviour?

i think last parameter should be

'--enable-logging=v=1' 

combining two.

also debug log find in application install directory.

c:\program files (x86)\google\chrome\application\<chrome version> 

called

chrome_debug.log 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -