screenshot of a particular element with python selenium in linux [closed]

+1 vote
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
Jan 21, 2020 in Selenium by anonymous
• 200 points

closed Jan 21, 2020 by Kalgi 608 views

Related Questions In Selenium

0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

Taking screenshot of a webpage with Python-Selenium. How it can be done?

Hi Babita, try using this piece of ...READ MORE

answered May 27, 2019 in Selenium by Abha
• 28,140 points
1,068 views
0 votes
1 answer

How to take Screenshot of a webpage in Selenium with Ruby

Hi Sunita, you can use following code ...READ MORE

answered Aug 26, 2019 in Selenium by Anvi
• 14,150 points
1,567 views
0 votes
1 answer
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8, 2019 in Selenium by Anvi
• 14,150 points
15,837 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,673 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,142 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,221 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP