Open nsmith5 opened 6 years ago
browser.Title() matches all title tags, but should only match one in the head section.
browser.Title()
package main import ( "gopkg.in/headzoo/surf.v1" "fmt" ) func main() { bow := surf.NewBrowser() err := bow.Open("http://golang.org") if err != nil { panic(err) } // Outputs: "The Go Programming Language" fmt.Println(bow.Title()) }
Expected behaviour: prints 'The Go Programming Language' Actual behaviour: prints 'The Go Programming Languagesubmit search'.
browser.Title()
matches all title tags, but should only match one in the head section.Example
Expected behaviour: prints 'The Go Programming Language' Actual behaviour: prints 'The Go Programming Languagesubmit search'.