This tutorial will help you automate your selenium tests using Rselenium on LambdaTest Cloud Selenium Grid.
- R and Rselenium : Install R with Homebrew
$ brew install R
-
LambdaTest Credentials
- Set LambdaTest username and access key in environment variables. It can be obtained from LambdaTest Automation Dashboard
example:
- For linux/mac
export LT_USERNAME="YOUR_USERNAME" export LT_ACCESS_KEY="YOUR ACCESS KEY"
- For Windows
set LT_USERNAME="YOUR_USERNAME" set LT_ACCESS_KEY="YOUR ACCESS KEY"
- Set LambdaTest username and access key in environment variables. It can be obtained from LambdaTest Automation Dashboard
-
To install RSelenium from CRAN, run:
$ R
> install.packages("RSelenium")
- To start the test, run:
$ Rscript todo-app.r