We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rod Version: v0.108.2
The code to demonstrate your question
package main import ( "fmt" "github.com/go-rod/rod" "github.com/go-rod/rod/lib/launcher" ) var page *rod.Page func main() { startURL := "https://www.baidu.com/" u := launcher.MustResolveURL("9222") browser := rod.New().NoDefaultDevice().ControlURL(u).MustConnect() page = browser.MustPage(startURL).MustWaitLoad() var sel = `//a[contains(text(),'登录')]` fmt.Println(page.HasX(sel)) page.MustElementX(sel).MustClick() fmt.Println("执行成功") }
此元素是存在并可见的,但是就是无法点击,卡死了
The text was updated successfully, but these errors were encountered:
提问不符合规则 2 和 3,因此关闭: #322
Sorry, something went wrong.
No branches or pull requests
Rod Version: v0.108.2
The code to demonstrate your question
此元素是存在并可见的,但是就是无法点击,卡死了
The text was updated successfully, but these errors were encountered: