Taking partial screenshot of a element by its id is possible in windows, but it is not working in linux can anyone please solve my problem where i did mistake in my code.
element = driver.find_element_by_id("s_curve")
element.save_screenshot("psr.png")
when it runs in windows, it succesfully downloaded screenshot of element. but in linux it throws exceptions as webdriver exception in save_screenshot line