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

context canceled #761

Closed
UchihaArk opened this issue Nov 21, 2022 · 2 comments
Closed

context canceled #761

UchihaArk opened this issue Nov 21, 2022 · 2 comments
Labels
question Questions related to rod

Comments

@UchihaArk
Copy link

UchihaArk commented Nov 21, 2022

Rod Version: v0.112.0

multi page interact at the same time

element 'x1,x2' is exist, I click the page before call WaitElementsMoreThan()

err := page.Timeout(10 * time.Second).Navigate("https://xxx1")
if err != nil {
   return
}
page.MustWaitLoad()

wait := page.Timeout(10 * time.Second).WaitOpen()
err = page.Timeout(10 * time.Second).MustElement("x1").Click(proto.InputMouseButtonLeft)
if err != nil {
   return
}
newPage, err := wait()
fmt.Println(newPage.Timeout(10 * time.Second).MustElement("xxx").MustText())

err = page.Timeout(10 * time.Second).WaitElementsMoreThan("x2", 0)
if err != nil {
   // err context canceled
   return
}

What you got

Concurrent execute, err is "context canceled"

must call Activate()? but cause new problem: No target with given id found

What you expected to see

success

@UchihaArk UchihaArk added the question Questions related to rod label Nov 21, 2022
@rod-robot
Copy link

Please fix the format of your markdown:

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

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Nov 21, 2022

#322

@ysmood ysmood closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 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