go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.42k stars 356 forks source link

focus to web content with chrome (ctrl+f6) #1149

Open sorazs opened 2 days ago

sorazs commented 2 days ago

Rod Version: v0.114.8

i have a chrome portable version 107 (and must use this version) that on load have focus on url address, and want send CTRL-F6 to set focus on content web page.

using this code : page.KeyActions().Press(input.ControlLeft).Type(input.F6).MustDo()

the result is that page have cursor blinking on document input tag, but focus remain on url address

from chrome version 122 on load the focus is on content web page.

github-actions[bot] commented 2 days ago

Please fix the format of your markdown:

5:18 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

generated by check-issue