Using the same in IE browser but getting half the screen as black and half is coming

0 votes
Using the same in IE browser but getting half the screen as black and half is coming
For chrome browser getting the expected screenshot only... Please update what can be the issue ?
May 4 in Selenium by Laxmi
• 120 points
141 views

1 answer to this question.

0 votes

You could probably give a try making using of Augmented WebDriver, which can be used with IEDriver on it's latest version, try the following code

WebDriver augmentedDriver = new Augmenter().augment(driver);
File screenFile = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(screenFile.getAbsolutePath(), new File("c:\\tmp\\test.png"));

Hope this helps!

answered May 4 by Sirajul
• 57,940 points
Hello!

The same result in Chrome. Do you know how to fix it?
Have you tried using AShot()?

Related Questions In Selenium

0 votes
1 answer

How to open new tab in same browser and switch between them using Selenium?

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

answered May 24, 2019 in Selenium by Abha
• 27,930 points
9,237 views
0 votes
0 answers
+1 vote
1 answer

How can I automate the process of adding iPhone to cart in Flipkart using Selenium(java),Page Object Model and TestNG? Also validate if product is added and available in cart?

Hey check this https://www.edureka.co/community/47160/automate-purchase-adding-book-cart-flipkart-using-selenium? It deals with a similar ...READ MORE

answered Jan 13 in Selenium by Karan
• 16,050 points
2,610 views
+1 vote
2 answers

How to get page source as it is in browser using selenium.

I needed to wait for an element ...READ MORE

answered Apr 18 in Selenium by laiman
• 330 points
2,011 views
0 votes
1 answer

Selenium ChromeDriver issue - Want to run it in background, but not as headless browser

This is a flaw with ChromeDriver. Tried ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,510 points
3,497 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the actual conflict while performing click() on web element, and getting an error like element is not clickable at point(x,y)?

Hey @sastry, the error Element is not clickable ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 57,940 points
1,202 views
+3 votes
1 answer

How to read excel file numeric data of all rows and column in selenium? I have 10 rows and 5 column but I read Only String value not a Numeric value?

Hey, @Mahendra, check this thread https://www.edureka.co/community/52170/read-numeric-data-from-excel-sheet-using-selenium-webdriver It deals with ...READ MORE

answered Jan 27 in Selenium by Sirajul
• 57,940 points
367 views