Chromedp is used for browser automation. I try to get windows title on *gmail 
inbox page* after it was opened. 
For some reason the title is empty. What am I doing wrong?

```
...
var title string

err := chromedp.Run(taskCtx,
chromedp.Navigate(`https://mail.google.com/mail/u/0/h/`),
...
chromedp.WaitVisible(`body`), // gmail inbox page was opened in browser
chromedp.Title(&title),
)
if err != nil {
if err.Error() == "context deadline exceeded" {
log.Println(err) // this line executed
} else {
log.Fatal(err)
}
}

log.Printf("success.\ntitle: %s\n", title) // title is empty!
```

The output in console:

2019/10/22 08:01:49 context deadline exceeded 
> 2019/10/22 08:01:49 success.
> title:


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b96d986f-0db0-40b7-9a5f-7a77abf731ff%40googlegroups.com.

Reply via email to