I can not perform the function doFilterOffer() on the page , it 's the following error missing ; before statement , what's wrong with this syntax below?
if (driver instanceof JavascriptExecutor) {
((JavascriptExecutor) driver).executeScript("Function doFilterOffer();", "click");
}