Error while navigating the website to clear data

I am clearing data for a website, but while I am browsing the website using the command remDr$navigate("http://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=1&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment&cityName=Thane&BudgetMin=5-Lacs&BudgetMax=10-Lacs")

it gives me a command line error

phantomjs://platform/console++.js:263 in error
[ERROR - 2017-06-28T05:01:51.466Z] Session [c5653e70-5bbe-11e7-9496-47f479558959] - page.onError - msg: ReferenceError: Can't find variable: paramTraffic

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-06-28T05:01:51.467Z] Session [c5653e70-5bbe-11e7-9496-47f479558959] - page.onError - stack:
  initializeDSS (https://cdn.staticmb.com/scripts/header.js:1)

  phantomjs://platform/console++.js:263 in error
10:31:52.411 INFO - Done: [get: http://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=1&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment&cityName=Thane&BudgetMin=5-Lacs&BudgetMax=10-Lacs]

      

But when I navigate to another site it runs smoothly

remDr$navigate("http://www.r-project.org")

10:45:21.810 INFO - Executing: [get: http://www.r-project.org])
10:45:21.938 INFO - Done: [get: http://www.r-project.org]

      

This is a piece of code

library(RSelenium)
library(wdman)
pJS <- phantomjs("C:/Users/user/Downloads/phantomjs-2.1.1-windows/phantomjs-2.1.1-windows/bin/phantomjs.exe",port = 4566L,version = "2.1.1",check = T,loglevel = c("INFO", "ERROR", "WARN", "DEBUG"), verbose = TRUE, retcommand = FALSE)

remDr <- remoteDriver(browserName = "phantomjs")
remDr$open()
remDr$navigate("http://www.magicbricks.com/property-for-sale/residential-real-estate?bedroom=1&proptype=Multistorey-Apartment,Builder-Floor-Apartment,Penthouse,Studio-Apartment&cityName=Thane&BudgetMin=5-Lacs&BudgetMax=10-Lacs")

      

Are there any ideas why this is happening.

Thanks in advance.

PS: - I am using Windows 10 selenium server version 3.3.1 all my other main drivers are in the same directory where my selenium server residing using phantomjs-2.1.1-windows browser

+3


source to share





All Articles