Skip to content

LiveHTML object corrupted after $click() #405

Description

@mccarthy-m-g

Brief description of the problem

I'm attempting to extract data from a paged table, but after using $click() the LiveHTML object becomes "corrupted". This may be an edge case with this specific website, as I was able to use $click() successfully from some other code examples in the Issues for this repo without this problem.

library(rvest)

sess <- read_html_live("https://www.cicic.ca/869/results.canada?search=&sect=2&int=3")
sess$click(".rgPageNext", n_clicks = 1)

sess
#> Error in onRejected(reason) : code: -32000
#>   message: Could not find node with given id

If you run this interactively with sess$view() you can see that the page loads successfully and the click works successfully, but after that sess seems to lose the information in html_elements (judging by the error).

Additional information

I asked on Mastodon and others were able to reproduce this error. I'm highlighting this because my initial thought was that this issue was caused by my browser being out of date due to OS restrictions, but that doesn't seem to be the case.

Software:

  • rvest: v1.0.4
  • R: v4.2.2
  • Browser: Chromium legacy (latest)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorlive 🐤

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions