Skip to content
Discussion options

You must be logged in to vote

Found the solution for this one, I've found out that Playwright has an argument option which you can specify the exact position where you want the element to be clicked. But based on my observation when you followed the codeceptjs syntax, it needs to be in the 3rd argument of I.click.

Here is the sample code I.click('your element text here', xpathLocator, { position: { x:5, y:5} })

ref: https://playwright.dev/docs/api/class-elementhandle#element-handle-click

Replies: 1 comment

Comment options

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