public static void takeScrollableScreenshot(WebDriver webdriver, String filePath, WebDriverWait wait) throws Exception
{
File myDirectory = new File(filePath);
if(!myDirectory.exists()) {
myDirectory.mkdirs();
}else{
// Directory already exist
}
Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(500))
.takeScreenshot(webdriver);
ImageIO.write(screenshot.getImage(), "PNG", myDirectory);
}
Scrollable screenshot using ashot in selenium not working with internet explorer 11 version but working fine in chrome and firefox
1.8k views Asked by Reshma Pradeep At
1
There are 1 answers
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in SELENIUM
- Can't get Selenium element
- Trying to find HREF from table with Selenium in Python
- Python | How i get the link of products that doesn't have href with selenium
- Selenium works only when I'm connected to a remote server
- Logging in automation using Selenium requests / responses- why it wont work?
- Why can't I scrape data from etherscan
- TypeError: 'SwitchTo' object is not callable
- Why driver.get doesn't work in Python Selenium when using Profile
- Trying to fill out an online form using selenium but it can't find the element
- Targeting Accept Policy With Selenium
- Python Selenium - Select Options not returning all the options
- Spraping data from a table is slow but uncertain why
- Unable to convert byte[] image to base64 using cucumber scenario api's - java selenium
- Selenium WebDriver - google account login problem using python
- Click on login button using Selenium
Related Questions in INTERNET-EXPLORER-11
- Urdu Text is Not Showing Up Correctly in Internet Explorer On Some Computers
- How to automate Internet Explorer in Window 10?
- docker file pip install locally
- div content to image
- Angular 12, IE 11, @@toPrimitive must return a primitive value
- Jumps to top of screen on Click in React (MUI) on Trident+
- Selenium Javascript executor don't finish - IE11, Edge IE mode
- Edge Browser in IE Mode is throwing an Error Message "Internet Explorer cant be found. You need to re-install or re-enable Internet Explorer""
- How to prevent IE mode in Edge
- AutoScroll on Button Click (Outlook Web Add-in 2013 & 2016 & 2019 volume licensed)
- nuxt i18n not working in IE throwing SCRIPT1006: Expected ')'
- Registry GUID for Adobe PDF Reader in IE11
- Excel VBA IE querySelector button click
- Recharts Newest Version crashing in IE11
- SCRIPT5009: 'BMapGL' is undefined on IE11
Related Questions in SCREENSHOT
- How to refresh a webcam snapshot periodically in a webpage
- Difficulty using Steamworks SDK to receiev screenshot request callback in my cpp app
- How to block screenshot in flutter ios application?
- How to capture a small screenshot (cursor included) around mouse?, with AutoHotkey
- Screenshot function works only on first capture
- C# screenshot doesn't contain whole screen
- Cannot get screen captures faster than one per 17 ms
- Get a photo of the entire page with HTML
- Element Screenshot in Selenium (python, ChromeDriver) is cut off at bottom for vertically tall element
- macos python os screencapture : 'could not create image from window'
- How to screenshot a SCNScene or SceneView?
- Problem with using SetWindowDisplayAffinity in Delphi
- in a fullpage screenshot, I want to show all of the content, how can I get scrollable elements' content height together efficient?
- Compress format and quality of screencap?
- How to take screenshot on failure
Related Questions in ASHOT
- How to perform element based visual testing using imagium?
- Not able to capture the image with BufferedImage buffimg =ImageIO.read(new URL(webImageLoc)) in Selenium webdriver java
- can't take Screenshot using Ashot library with selenium
- takeScreenshot method from AShot library not working to capture screen shot for specific element
- My driver class is not working with Ashot screenshot
- Ashot screenshot does not correctly crop the element from screenshot
- Take Screenshot using AShot and Watir
- Taking full page screen shot of really long webpages using Ashot, Selenium Java Client, ChromeDriver
- How to get full page screenshot including all the content of scrollable popup using selenium
- Ashot - element screenshot is not taken correcly
- Difference between aShot and Shutterbug in selenium
- org.openqa.selenium.JavascriptException: javascript error: $ is not defined error taking coordinate screenshot with Ashot using ChromeDriver Selenium
- Ashot Java Heap Space Errors
- Chrome mobile emulation screenshooting with Ashot problem
- Selenium Java aShot fullscreen screenshot of PDF not working
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can use below method to take full page screenshot in IE :
Hope that helps you:)