I'm using the latest stable versions of cucumber and serenity, along with the standard chromedriver. I'm having minimal joy trying to show the contents of a select box in my HTML reports.
Here is my HTML code:
<html>
<head></head>
<body>
<select id="inputSelectForAuth">
<option>Select</option>
<option>KBA</option>
<option>SMS</option>
<option>Phone</option>
<option>Shared Secret</option>
</select>
</body>
</html>
Here is my serenity code (Java):
public void clickAvailableMethodOptions() {
WebElementFacade XPATH_SELECT = find(ByXPath.xpath("(//select[@id='inputSelectForAuth'])"));
XPATH_SELECT.click();
XPATH_SELECT.waitUntilVisible();
}
Which is being called from my step definition file (Java):
@Then("^click on available method options")
public void clickAvailableMethodOptions() {
commonsUtilPage.clickAvailableMethodOptions();
}
Which is being called from my feature file:
Feature: method options
scenario: check available method options exist
Then click on available method options
It's all working fine apart from displaying the options in the screenshot. The select option is focused in the screenshot, as if it had been clicked, it just isn't displaying the list of available options that show up. I can even see them show up when watching chromedriver do it's thing.