Skip to content

Mouse button click from the pageObject ('mouseButtonClick' of undefined) #2865

Answered by Pieras2
Pieras2 asked this question in Help Needed
Discussion options

You must be logged in to vote

Ok solved

    set_reset_top(selector): Promise<myPageObject> {
        const rightButton = 2; // number of button from (0, 1, 2)
        return new Promise(async(resolve) => {
            await this.click('@mySelector');
            await this.waitForElementVisible('@mySelector');
            await this.click('@mySelector');
            await this.api.mouseButtonClick(rightButton);
            await this.waitForElementVisible(mySelector);
            await this.click(mySelector);
            resolve(this);
        });
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Pieras2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant