Closed
Description
Hi,
I am trying to mock-up a movement of mouse on a signature module for example on https://www.signwell.com/online-signature/draw/
here's my code currently (which was modified from the mkrec feature on sbase as well to record steps):
from seleniumbase import BaseCase
class RecorderTests(BaseCase):
def test_recording(self):
self.open("https://www.signwell.com/online-signature/draw/")
self.drag_and_drop_with_offset("(//canvas[@id='canvas_signature'])[1]", 200, 0)
self.sleep(10)
self.click("button#signature-save")
i have also tried changing "drag_and_drop_with_offset" with "click_with_offset" however its not working as well.
I also tried to simulate the whole process by using mkrec and here's the code i got from it
from seleniumbase import BaseCase
class RecorderTests(BaseCase):
def test_recording(self):
self.open("https://www.signwell.com/online-signature/draw/")
self.click_with_offset("canvas#canvas_signature", 177.66665649414062, 113.27082824707031)
self.click_with_offset("canvas#canvas_signature", 524.6666564941406, 136.2708282470703)
self.click_with_offset("canvas#canvas_signature", 510.6666564941406, 180.2708282470703)
self.click_with_offset("canvas#canvas_signature", 306.6666564941406, 188.2708282470703)
self.click_with_offset("canvas#canvas_signature", 318.6666564941406, 192.2708282470703)
self.click("button#signature-save")
upon rerunning the recorded script, the movements were not visible as well but the results are passing.
would greatly appreciate if there's any help that can be provided by anyone that has done this before.
Thank you so much in advance!