Search code examples
javaselenium-webdrivertestngselenide

How can i Integrate Selenide with existing selenium webdriver code?


I have already a framework. So by which steps I can add selenide methods and code in selenium webdriver code?


Solution

  • Using Selenide is pretty simple. Just put selenide.jar to your project and start writing $(selector).val("abcde") instead of webdriver.findElement(By.xxx()).sendKeys().

    Take a look at this 10-minute video: http://selenide.org/2014/10/01/how-to-start-writing-ui-tests/

    About the Ant's concerns described above, they are not actual.

    1. Selenide allows you to manage webdriver by yourself. Look at this: https://github.com/codeborne/selenide/wiki/How-Selenide-creates-WebDriver#how-to-run-selenide-with-another-browser

    2. Selenide does support Safari. Selenide does support any other webdriver. No restrictions.

    3. Selenide supports PageObjects. Moreover, Selenide does using PageObject pattern more convenient and flexibile than the "standard" Selenium approach. Look at this: http://selenide.org/documentation/page-objects.html

    Feel free to send more questions!