Skip to content
New issue

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

默认情况下,当按钮不在可视区域时,是无法点击,一直卡住的 #684

Closed
feeops opened this issue Aug 12, 2022 · 3 comments
Labels
question Questions related to rod

Comments

@feeops
Copy link

feeops commented Aug 12, 2022

Rod Version: v0.108.2

问题说明

默认情况下,如果网页比较长,按钮在网页中是有的,当按钮不在可视区域时,是无法点击,一直卡住的

有办法通过添加chrome浏览器参数解决此问题吗?

或者有变通办法自动先移动那个元素上?

@feeops feeops added the question Questions related to rod label Aug 12, 2022
@rod-robot
Copy link

Please fix the format of your markdown:

11 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Aug 12, 2022

请再读读文档:

rod/element.go

Lines 101 to 104 in 4710d7f

// Click will press then release the button just like a human.
// Before the action, it will try to scroll to the element, hover the mouse over it,
// wait until the it's interactable and enabled.
func (el *Element) Click(button proto.InputMouseButton) error {

@ysmood
Copy link
Member

ysmood commented Aug 12, 2022

#322

@ysmood ysmood closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

3 participants