Skip to content

Commit 6ebce67

Browse files
committed
Add "canvas" actions to Recorder Mode test generation
1 parent 8e27216 commit 6ebce67

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3739,6 +3739,19 @@ def __process_recorded_actions(self):
37393739
sb_actions.append('self.%s("%s")' % (method, action[1]))
37403740
else:
37413741
sb_actions.append("self.%s('%s')" % (method, action[1]))
3742+
elif action[0] == "canva":
3743+
method = "click_with_offset"
3744+
selector = action[1][0]
3745+
p_x = action[1][1]
3746+
p_y = action[1][2]
3747+
if '"' not in selector:
3748+
sb_actions.append(
3749+
'self.%s("%s", %s, %s)' % (method, selector, p_x, p_y)
3750+
)
3751+
else:
3752+
sb_actions.append(
3753+
"self.%s('%s', %s, %s)" % (method, selector, p_x, p_y)
3754+
)
37423755
elif action[0] == "input" or action[0] == "js_ty":
37433756
method = "type"
37443757
if action[0] == "js_ty":

0 commit comments

Comments
 (0)