Skip to content

Commit

Permalink
fix stale element error
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouy committed Feb 10, 2022
1 parent a2d8d16 commit 62b15f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def test_page_click(driver, grid, page, n_cols, n_rows):
doc = get_doc(grid, dict(n_cols=n_cols, n_rows=n_rows))
driver.get(doc)
for i in range(2, page+1):
driver.wait_for_img_load()
next_page = driver.find_by_css_selector(f'a.page-link[data-i="{i}"]')
next_page.click()
first_cell = driver.find_by_class_name('cell')
Expand Down

0 comments on commit 62b15f8

Please sign in to comment.