r - Unable to open URL using RSelenium with Selenium Standalone Server -


i'm trying scrape census data using rselenium in rstudio i'm having trouble navigating url using chrome browser.

i have selenium standalone server running , chrome driver setup environment variable in system settings.

as minimum working example, i'm able implement following commands:

> library(rselenium) > remdr <- remotedriver(browsername = "chrome") > remdr$open() 

running last command gives me following output:

[1] "connecting remote server" $applicationcacheenabled [1] false  $rotatable [1] false  $chrome $chrome$userdatadir [1] "c:\\users\\rchoksi\\appdata\\local\\temp\\scoped_dir5908_26290"   $takesheapsnapshot [1] true  $databaseenabled [1] false  $handlesalerts [1] true  $version [1] "61.0.3163.79"  $platform [1] "windows nt"  $browserconnectionenabled [1] false  $nativeevents [1] true  $acceptsslcerts [1] true  $locationcontextenabled [1] true  $webstorageenabled [1] true  $browsername [1] "chrome"  $takesscreenshot [1] true  $javascriptenabled [1] true  $cssselectorsenabled [1] true  $id [1] "f28c4373e6063f797904f3e4a890d02b" 

i believe 'browserconnectionenabled' property set false creating problem, may wrong.

on running following command, error shown below.

> remdr$navigate("https://factfinder.census.gov/faces/nav/jsf/pages/index.xhtml")  selenium message:unknown error: runtime.executioncontextcreated has invalid 'context': {"auxdata":{"frameid":"5972.1","isdefault":true},"id":1,"name":"","origin":"://"}   (session info: chrome=61.0.3163.79)   (driver info: chromedriver=2.9.248315,platform=windows nt 6.1 sp1 x86_64)  error:   summary: unknownerror      detail: unknown server-side error occurred while processing command.      further details: run errordetails method 

the session info shown below:

r version 3.4.0 (2017-04-21) platform: x86_64-w64-mingw32/x64 (64-bit) running under: windows 7 x64 (build 7601) service pack 1  matrix products: default  locale: [1] lc_collate=english_united states.1252  [2] lc_ctype=english_united states.1252    [3] lc_monetary=english_united states.1252 [4] lc_numeric=c                           [5] lc_time=english_united states.1252      attached base packages: [1] stats     graphics  grdevices utils     datasets  methods   base       other attached packages: [1] rselenium_1.7.3  loaded via namespace (and not attached):  [1] httr_1.3.1       compiler_3.4.0   r6_2.2.2         assertthat_0.2.0  [5] tools_3.4.0      wdman_0.2.2      binman_0.1.0     curl_2.8.1        [9] rcpp_0.12.12     jsonlite_1.5     catools_1.17.1   openssl_0.9.7    [13] bitops_1.0-6     semver_0.2.0     xml_3.98-1.9 

any pointers on how overcome issue or suggestions other tools implement same appreciated.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -