Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Cucumber not finding @Findby annotations

You are mapping the elements correctly, however, you forgot to start the WebElements, you do this using PageFactory.initElements(). Below is an example of how I do it in my projects, the selectors ...
raulpacheco2k's user avatar
1 vote

How to repeat the same test with Selenium Webdriver without opening a new browser instance each time?

You can create a wrapper for your driver, so you can control when the driver object is created and closed. // features/support/world.js const { setWorldConstructor } = require('@cucumber/cucumber'); ...
João Farias's user avatar
  • 10.9k

Top 50 recent answers are included