GithubHelp home page GithubHelp logo

selenide-browserstack's Introduction

Selenide-BrowserStack

Run a sample Selenide test on BrowserStack

##Setup

Clone this repo: git clone https://github.com/UmangSardesai/selenide-browserstack.git

Note: You need Maven installed.

Configuration

Add BrowserStack Username and Automate-key to BrowserStackFactory.java

Run Tests

  1. To launch the test on your local browser:

mvn clean test

  1. To run tests on BrowserStack, you simply need to point the hub URL to our Selenium hub 'http://hub.browserstack.com/wd/hub' along with your Username and Automate-key. In Selenide, you can so this by giving the hub URL with the remote parameter as given below:

mvn clean test -Dremote=http://<username>:<automate-key>@hub.browserstack.com/wd/hub

  1. However, you would want to also want to select a particular browser and OS combination on BrowserStack. For this you create a Java file which returns a RemoteWebDriver object. You can then pass this file as a parameter while running your test as follows:

mvn clean test -Dselenide.browser=com.BrowserStack.BrowserStackFactory

Further Reading

Happy Testing!

selenide-browserstack's People

Contributors

umangsardesai avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.