In browsertest.Open(), capture console INFO logs.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
6b801056b5
commit
1904f8ddc3
@ -27,6 +27,10 @@ func Open(t *testing.T) *agouti.Page {
|
|||||||
t.Logf("opening browser driver")
|
t.Logf("opening browser driver")
|
||||||
env := testlib.IntegrationEnv(t)
|
env := testlib.IntegrationEnv(t)
|
||||||
caps := agouti.NewCapabilities()
|
caps := agouti.NewCapabilities()
|
||||||
|
|
||||||
|
// Capture console.log(), not just console.error().
|
||||||
|
caps["loggingPrefs"] = map[string]string{"browser": "INFO"}
|
||||||
|
|
||||||
if env.Proxy != "" {
|
if env.Proxy != "" {
|
||||||
t.Logf("configuring Chrome to use proxy %q", env.Proxy)
|
t.Logf("configuring Chrome to use proxy %q", env.Proxy)
|
||||||
caps = caps.Proxy(agouti.ProxyConfig{
|
caps = caps.Proxy(agouti.ProxyConfig{
|
||||||
|
Loading…
Reference in New Issue
Block a user