Graphene webdriver not firing on tests using FindBy css

Posted: December 6, 2012 in web

One cause is an existence of a “:” on the css selector. Just replace it with “\\:” and should be good to go. See code below.

Page Object:

@FindBy(css = “#car-form:year > .ui-chkbox-box”)
private WebElement yearCheckBox;

public void selectYearCheckBox() {
waitModel().withTimeout(10, TimeUnit.SECONDS).until(element(yearCheckBox).isVisible());
yearCheckBox.click();

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s