Skip to content

Improvements to Recorder Mode assertions

Compare
Choose a tag to compare
@mdmintz mdmintz released this 14 Oct 21:02
· 3842 commits to master since this release
5a5f6d6

Improvements to Recorder Mode assertions

🔴 SeleniumBase 1.66.14 improves the algorithm for converting recorded assertions into SeleniumBase code. Text assertions that contain the newline character will now be handled correctly. If a text assertion has a :contains selector, then the text assertion will be changed to an element assertion. Asserted text from multi-line assertions will use self.assert_text() on the first non-empty line. Asserted text from single-line assertions will use self.assert_exact_text(). Element assertions will be handled with self.assert_element().