R - using RSelenium to log into website (Captcha, and staying logged in)
<p>I want to use RSelenium to access and scrape a website each day. Something I've noticed is that when I open up the website in a regular chrome browser, I am already logged in from the last time I visited the website. However, if I use RSelenium to open up a remote driver, and visit the webpage using this driver, it does not have me logged into the website already. It's basic enough to log into most sites usually, however for this website there is a Captcha that makes logging in more difficult.</p>

<p>Is there anyway the remote driver can access the website with me already logged in?</p>

<p>Example of my code below:</p>

<pre><code>this_URL = "my_url_goes_here"
startServer()

remDr = remoteDriver$new(browserName = 'chrome')
Sys.sleep(2); remDr$open();
Sys.sleep(4); remDr$navigate(this_URL);

login_element = remDr$findElement(using = "id", "login-link")
login_element$
</code></pre>

<p>After clicking the login_element link, it brings me to the page where I input my username, password, and click the captcha / do what it asks.</p>

<p>Thanks,</p>