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 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in SELENIUM
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Compound classes stored in an array are not accessible in selenium java
- Fail Upload file in Selenium webdriver using Robot class
- Selenium crashes Firefox, how to reset the used profile / where is the default profile?
- Selenium Driver Service not found exception
- Unable to read excel if cell/column has drop down list enabled for Selenium webdriver TestNG
- Selenium C#: Store element's position on graph as a variable
- Selenium webdriver for handling dynamic ckeditors
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- python - selenium change frame not working
- Selecting Options from a Drop Down Menu in C# using Selenium
- Validation without skipping the test cases if one fails
- How can i increase session timeout (which is 30 minutes by default)
- Load additional CONFIG file with values
Related Questions in INTERNET-EXPLORER-11
- detecting plugins on IE11 using javascript
- KO binding is not working in IE10 and IE11
- Using JSSOR Slider with IE11
- Content of iframe (ionic app) doesn't scroll on Internet Explorer using touch
- Angular on a svg - $sce.trustAsHtml inside svg does not work in safari and ie
- PDF cannot be seen on IE11/10/9 recently
- Execute Javascript onWindowClose in IE11
- IE Rendering Bug on EM sized inputs
- Strange behaviour with spliting a string in Javascript
- Media Source Extension on Firefox and IE
- Run Native Client Within Chrome Frame in Internet Explorer
- JavaScript in IE11 giving me script error 1003
- function.bind() not supported in IE8. make it available specifically for IE8 browsers? or keep it generic
- Once page load , table content disappearing in IE 11
- Security Error on IE11 when using Worker
Related Questions in SCREENSHOT
- Make screenshot of DirectX window that is hidden and doesn't have focus
- How to prevent recording of iOS screen using quicktime
- Why does view.layer.renderInContext() take higher amount of temporary memory for same size screenshot
- Updating app icon and screenshots
- How to convert a UIView to an image
- Visual Basic - Screen shot then insert into email
- Is there any android app to capture screen when anything gets change on screen?
- How to take a screenshot in Android with CameraView (SurfaceView)
- Take a global Screenshot
- Screen shot current active window in java
- Xlib - Problems taking an screenshot
- A faster way to get screenshots of a video with ffmpeg
- Screen Capture multiple websites using phantomjs
- Taking screenshot functionality in flex 3.5 was working but now it is not working
- How can I get screenshot from all displays with X11?
Related Questions in ASHOT
- Taking full page screen shot of really long webpages using Ashot, Selenium Java Client, ChromeDriver
- [Ashot][Selenium] - Take screenshot for iOS and Android
- How to compare screenshots with ashot changing the expected precision?
- How can I screen a full vertical size with exactly horizontal size?
- Capture full webpage screenshot in selenium that has sticky header
- Take Screenshot using AShot and Watir
- My driver class is not working with Ashot screenshot
- takeScreenshot method from AShot library not working to capture screen shot for specific element
- Scrollable screenshot using ashot in selenium not working with internet explorer 11 version but working fine in chrome and firefox
- How to take full page screenshot using AShot library through Selenium and Java
- How to take a screenshot with Selenium WebDriver?
- Ashot Java Heap Space Errors
- Selenium Java aShot fullscreen screenshot of PDF not working
- Ashot - Not able to take screenshot of particlular element in Chrome
- Capture multiple screenshots (not overriding the previous one) using aShot class in selenium webdriver
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)
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?
You can use below method to take full page screenshot in IE :
Hope that helps you:)