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

Why ElementByJS ignores sleeper? #1169

Open
dgreshnikov opened this issue Jan 21, 2025 · 0 comments
Open

Why ElementByJS ignores sleeper? #1169

dgreshnikov opened this issue Jan 21, 2025 · 0 comments
Labels
question Questions related to rod

Comments

@dgreshnikov
Copy link

Rod Version: v0.116.2

func (el *Element) ElementByJS(opts *EvalOptions) (*Element, error) {
	e, err := el.page.Context(el.ctx).Sleeper(NotFoundSleeper).ElementByJS(opts.This(el.Object))
	if err != nil {
		return nil, err
	}
	return e.Sleeper(el.sleeper), nil
}

Is there a reason for that? Why don't we use .Sleeper(el.sleeper)? This leads to unexpected behavior

@dgreshnikov dgreshnikov added the question Questions related to rod label Jan 21, 2025
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

1 participant