diff --git a/v2/gcd_test.go b/v2/gcd_test.go index ac65f5e..b4ae778 100644 --- a/v2/gcd_test.go +++ b/v2/gcd_test.go @@ -481,35 +481,13 @@ func TestConnectToInstance(t *testing.T) { testDefaultStartup(t) defer debugger.ExitProcess() - doneCh := make(chan error) - - go testTimeoutListener(doneCh, 15, "timed out waiting for remote connection") - - go func() { - remoteDebugger := NewChromeDebugger() - remoteDebugger.ConnectToInstance(debugger.host, debugger.port) - - _, err := remoteDebugger.NewTab() - if err != nil { - t.Fatalf("error creating new tab") - } + remoteDebugger := NewChromeDebugger() + t.Logf("connecting to %s:%s", debugger.host, debugger.port) + remoteDebugger.ConnectToInstance(debugger.host, debugger.port) - targets, error := remoteDebugger.GetTargets() - if error != nil { - t.Fatalf("cannot get targets: %s \n", error) - } - if len(targets) <= 0 { - t.Fatalf("invalid number of targets, got: %d\n", len(targets)) - } - for _, target := range targets { - t.Logf("page: %s\n", target.Target.Url) - } - close(doneCh) - }() - - err := <-doneCh + _, err := remoteDebugger.NewTab() if err != nil { - t.Fatal(err) + t.Fatalf("error creating new tab") } } diff --git a/v2/gcdapi/accessibility.go b/v2/gcdapi/accessibility.go index 1fffc52..a6afa66 100644 --- a/v2/gcdapi/accessibility.go +++ b/v2/gcdapi/accessibility.go @@ -16,7 +16,7 @@ type AccessibilityAXValueSource struct { Attribute string `json:"attribute,omitempty"` // The name of the relevant attribute, if any. AttributeValue *AccessibilityAXValue `json:"attributeValue,omitempty"` // The value of the relevant attribute, if any. Superseded bool `json:"superseded,omitempty"` // Whether this source is superseded by a higher priority source. - NativeSource string `json:"nativeSource,omitempty"` // The native markup source for this value, e.g. a