headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.49k stars 160 forks source link

Is this project support JS? #117

Open DeadNumbers opened 5 years ago

DeadNumbers commented 5 years ago
package main

import (
    "fmt"

    "gopkg.in/headzoo/surf.v1"
)

func main() {
    bow := surf.NewBrowser()
    err := bow.Open("https://www.whatismybrowser.com/detect/is-javascript-enabled")
    if err != nil {
        panic(err)
    }
    fmt.Println(bow.Find("#detected_value").Text())
}

Return No

nciefeiniu commented 4 years ago

If you render directly in JavaScript, that's great

⛽️