0

Is it possible to use Serenityjs as plugin for webdriverio or wd.js instead of protractor?

If yes - Can someone provide any example/sample code? If no - Is there any plan to roll out this feature?

We already have test framework in webdriverio so dont want to convert whole project to serenityjs/protractor

1 Answers1

1

Serenity/JS doesn't support webdriverio or wd.js out of the box just yet, but you could use @serenity-js/core to integrate Serenity/JS with your webdriver flavour of choice.

The implementation would probably look similar to serenity-protractor, so you'd need:

  • an Ability, wrapping webdriverio/wd.js client; similar to BrowseTheWeb for Protractor
  • some Interactions, wrapping the method calls on your client of choice
  • some Questions to read the data from the page
  • and your client-specific version of the Target class

This thread should give you some more context.

Pang
  • 9,564
  • 146
  • 81
  • 122
Jan Molak
  • 4,426
  • 2
  • 36
  • 32
  • 1
    I've been creating a setup for cypress today and followed the same approach as described here. It's not too challenging to do and works fine! – Michael Mar 07 '19 at 20:17
  • That's sounds cool, @Michael! Would be great if you could share your Cypress setup with the community if you can :-) – Jan Molak Mar 08 '19 at 11:08
  • 1
    I am still in a very early fase but I was thinking about providing it to the serenity-js repo or as a package for Cypress. @Jan Molak – Michael Mar 08 '19 at 13:59
  • 1
    Awesome, feel free to reach out to me on Github or LinkedIn if you have questions – Jan Molak Mar 08 '19 at 16:25