We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eec52a7 + ce1af3f commit 7a7a8d4Copy full SHA for 7a7a8d4
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