Hi everyone,
I am working on creating an automated test to resize a specific selector as shown in the video attached. However, I can't seem to find a feature to help achieve that. I have tried page.mouse.move(selectorPositionX, selectorPositionY). However it points to the selector but it does not move the selector.
Any help would be appreciated!
Thanks
This thread is trying to answer question "How can I automate a test to resize a specific selector?"
Hi @bububu8615 and @ethenhunt, thanks for the support. I have been able to move it by changing the first and second mouse.move():
const sourceX = dragBtnBox.x + dragBtnBox.width/2 const sourceY = dragBtnBox.y + dragBtnBox.height/2 await page.mouse.move(sourceX, sourceY) await page.mouse.move(sourceX, sourceY) await page.mouse.down() await page.mouse.move(dragBtnBox.x, sourceY) await page.mouse.up()
However, this only moves up to the dragBtnBox.x location. When I try to do move it bellow(dragBtnBox.x -20), it does not work. How can i share the dom @bububu8615 ?
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].