0

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");
    }

1 Answer 1

1

You should remove the Function word:

((JavascriptExecutor) driver).executeScript("doFilterOffer();", "click");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.