Skip to content
Snippets Groups Projects
Commit c5fbd5e5 authored by ale's avatar ale
Browse files

Revert to no-scrollbar screenshot approach

parent 0cc4bda8
No related branches found
No related tags found
1 merge request!17Upgrade to webpack + Bootstrap4
......@@ -42,8 +42,8 @@ def save_screenshot(driver, path):
required_width = driver.execute_script('return document.body.parentNode.scrollWidth')
required_height = driver.execute_script('return document.body.parentNode.scrollHeight')
driver.set_window_size(required_width, required_height)
driver.save_screenshot(path) # has scrollbar
# driver.find_element_by_tag_name('body').screenshot(path) # avoids scrollbar
# driver.save_screenshot(path) # has scrollbar
driver.find_element_by_tag_name('body').screenshot(path) # avoids scrollbar
driver.set_window_size(original_size['width'], original_size['height'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment