Capability of using Karate along with selenium webdriver

前端 未结 1 665
离开以前
离开以前 2020-12-04 00:39

I started using Karate one week back and this is my first question. I used to write web service tests using Spock & groovy, Rest assured & cucumber. When I came acro

1条回答
  •  旧巷少年郎
    2020-12-04 01:26

    You have 2 options, call Selenium driver from Karate or call Karate via the Java API.

    • Example of mixing Java code using a Java library into a Karate test (JDBC in this case): dogs.feature. Also refer to how to call Java in the documentation.
    • Documentation for how to call Karate from Java: Java API

    Personally, I prefer option 1 - which is what you have been doing with Spock.

    EDIT: Karate now supports Web Browser automation, so you don't need Selenium anymore: The world needs an alternative to Selenium - so we built one

    0 讨论(0)
提交回复
热议问题