(self, title)
| 3277 | ) |
| 3278 | |
| 3279 | def assert_title(self, title): |
| 3280 | expected = title.strip() |
| 3281 | actual = self.get_title().strip() |
| 3282 | error = ( |
| 3283 | "Expected page title [%s] does not match the actual title [%s]!" |
| 3284 | ) |
| 3285 | if expected != actual: |
| 3286 | time.sleep(2) |
| 3287 | actual = self.get_title().strip() |
| 3288 | if expected != actual: |
| 3289 | raise Exception(error % (expected, actual)) |
| 3290 | |
| 3291 | def assert_title_contains(self, substring): |
| 3292 | expected = substring.strip() |