Skip to content

Commit c514cde

Browse files
authored
Update README.md
Updated section 2.2.1. How to Start.
1 parent 09aad35 commit c514cde

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ As mentioned in previous sections, in JavaScript heavy websites, the majority of
621621
1. It's very slow:
622622
* Since the browser loads everything on the web page(including photos, ads or even videos), it will be really slow comparing to making requests using `httr` or `rvest`.
623623
2. Lacking support:
624-
* Comparing to Selenium in Python, RSelenium doesn't have a large user base and hence lacks support. If you ever searched RSelenium related questions, you might already found out that: many solutions could be obsolete , you couldn't find related topics or the only solutions available were for Python..
624+
* Comparing to Selenium in Python, RSelenium doesn't have a large user base and hence lacks support. If you ever searched RSelenium related questions, you might already found out that: many solutions could be obsolete , you couldn't find related topics or the only solutions available were for Python.
625625

626626
### 2.1.2 <a name="rselenium1.2">Useful Resources</a>
627627

@@ -639,7 +639,7 @@ library(RSelenium)
639639
# start the server and browser(you can use other browsers here)
640640
rD <- rsDriver(browser=c("firefox"))
641641

642-
driver <- rD$client
642+
driver <- rD[["client"]]
643643

644644
# navigate to an URL
645645
driver$navigate("http://books.toscrape.com/")
@@ -648,14 +648,19 @@ driver$navigate("http://books.toscrape.com/")
648648
driver$close()
649649

650650
#close the server
651-
rD$server$stop()
651+
rD[["server"]]$stop()
652652
```
653653

654654
**Common Issues and Solutions when starting the server and browser**
655655

656-
1. Port already in use:
657-
- Solutions: [close the server](<https://stackoverflow.com/questions/43991498/rselenium-server-signals-port-is-already-in-use>)
658-
656+
1. Port already in use.
657+
- https://stackoverflow.com/questions/43991498/rselenium-server-signals-port-is-already-in-use.
658+
- https://stackoverflow.com/questions/53464640/launch-rselenium-browser-regardless-of-port-open-closed
659+
- Try restart Rstudio.
660+
2. session not created: This version of ChromeDriver only supports CHrome verssion XX.
661+
- [Specify chrome version or install latest chrome driver](https://stackoverflow.com/questions/55201226/session-not-created-this-version-of-chromedriver-only-supports-chrome-version-7).
662+
3. Other issues:
663+
- Try reinstall/update RSelenium or wdman package.
659664

660665

661666
### 2.2.2. <a name = "rselenium2.1">Navigating to different URLs</a>

0 commit comments

Comments
 (0)