I'm currently trying to script some automation tests.
I've hit a block with what should be a simple checkbox click...
The issue is the test run passes the step, but in the browser the "click" hasn't actually occurred.
POM
optionClick(optionValue){
const option = $('//input[@type="checkbox"]').$('..').$('label').$('//span[contains(text(), "'+optionValue+'")]');
option.waitForDisplayed(2000);
const optionSelect = $('//input[@type="checkbox"]').$('..').$('label').$('//span[contains(text(), "'+optionValue+'")]');
optionSelect.click();
}
Feature is - And I select the 'Create' option