We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bdf0e6 commit 71247e8Copy full SHA for 71247e8
tests/test_generator.py
@@ -114,6 +114,11 @@ def test_generator_without_selector():
114
with record(browser) as rec:
115
rec.record_click(1) # No selector
116
117
+ # Explicitly remove selector to test the no-selector case
118
+ # (The recorder automatically infers selectors, so we need to clear it)
119
+ if rec.trace.steps:
120
+ rec.trace.steps[-1].selector = None
121
+
122
generator = ScriptGenerator(rec.trace)
123
code = generator.generate_python()
124
0 commit comments