Running multiple scenarios from feature file


I am having some issues running multiple scenarios from a feature file. I am using Java for the step definitions and glue files with hooks. The first scenario runs fine but the second scenario fails. Both scenarios are using the same given and when steps. The first scenario passes fine with these but the second scenario fails at the when step (it is exactly the same step).

The error returned is that there is no such element e[org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. I don’t understand this error because the same element was just found in the first scenario but for some reason is not found in the second scenario.

Any advice would be appreciated,



Does your setup launch an Appium session, and does your teardown quit the session?

Hi Frisco,

Thank you for your reply. Yes, an appium session does launch and it quits as expected. I can run the app on a device and an emulator. I am using version 1.2.2