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