Comments (6)
Hi @racchouhan12 ,
Please provide the following:
- Browser version
- Driver version
- Selenium version
used as well as the code snippet you are executing.
from selenium-shutterbug.
MicrosoftEdge Version: 90.0.818.49
Edge Driver version: 4.0.0-beta-3
Selenium Version: 3.141.59
snippet:
try { scrollPageVerticallyTillBottom(driver); scrollToTop(driver); WaitUtil.nap(1); File destinationFile = new File(screenshotDir); destinationFile.getParentFile().mkdirs(); Shutterbug.shootPage(driver, Capture.FULL).withName(screenshotFileName).save(screenshotDir); logger.debug("screenshot taken and stored at " + destinationFile.getAbsolutePath()); } catch (Exception var5) { logger.error(var5.getMessage(), var5); }
from selenium-shutterbug.
Could you please also post the snippet of code of driver creation
from selenium-shutterbug.
if (driverHost.contains("browserstack")) {
capabilities = new DesiredCapabilities();
capabilities.setCapability("browserName", System.getProperty("browserName"));
capabilities.setCapability("browserstack.idleTimeout", System.getProperty("browserStack.idle.timeout"));
HashMap browserstackOptions;
if (isPdfJsDisabled && System.getProperty("browserName").toLowerCase().contains("chrome")) {
//chrome option
capabilities.setCapability("goog:chromeOptions", options);
}
if (isPdfJsDisabled && System.getProperty("browserName").toLowerCase().contains("firefox")) {
//firefox option
capabilities.setCapability("firefox_profile", profile);
}
if (System.getProperty("browserName").toLowerCase().contains("safari")) {
SafariOptions options = new SafariOptions();
capabilities.setCapability("safari.options", options);
}
capabilities.setCapability("browserVersion", System.getProperty("browserVersion"));
browserstackOptions = new HashMap();
browserstackOptions.put("os", System.getProperty("os"));
browserstackOptions.put("osVersion", System.getProperty("osVersion"));
browserstackOptions.put("local", System.getProperty("local"));
browserstackOptions.put("userName", System.getProperty("uame"));
browserstackOptions.put("accessKey", System.getProperty("key"));
browserstackOptions.put("debug", System.getProperty("debug"));
browserstackOptions.put("video", System.getProperty("video"));
browserstackOptions.put("seleniumLogs", System.getProperty("seleniumLogs"));
browserstackOptions.put("seleniumVersion", System.getProperty("seleniumVersion"));
capabilities.setCapability("bstack:options", browserstackOptions);
capabilities.setCapability("build", System.getProperty("build"));
capabilities.setCapability("project", System.getProperty("test.project"));
capabilities.setCapability("name", methodName);
capabilities.setCapability("resolution", System.getProperty("resolution"));
return new RemoteWebDriver(new URL(driverHost), capabilities);
}
Here "browserName" I am passing is "MicrosoftEdge" in my testng.xml
from selenium-shutterbug.
@glib-briia are you planning to release this change anytime soon?
from selenium-shutterbug.
@racchouhan12 released. Will be available in maven central in couple hours.
from selenium-shutterbug.
Related Issues (20)
- Capture.FULL not working as expected in Safari browser HOT 6
- Compile failes with latest code from master HOT 4
- Screenshots not working with RemoteWebDriver and Shutterbug 1.6 HOT 7
- Shutterbug.wait() NoSuchMethodError HOT 2
- Fail to take regular element screenshot via Safari/Mac HOT 2
- Display image filename/filepath in exceptions HOT 2
- differences in screenshots
- The header part is missing in the screenshot HOT 1
- Getting null value when getting devicePixelRatio
- . HOT 1
- Capture full screenshot scrolls the view when using the Capture type as FULL
- Shutterbug not working for taking entire webpage screenshot capture on Internet Explorer HOT 2
- Full page screenshots occasionally missing some pixels at the bottom HOT 3
- java.lang.NoClassDefFoundError HOT 4
- Full page screenshot issues -Unable to establish websocket connection HOT 2
- [add Feature] about rename file in withname(variable) HOT 2
- Doesn't make a proper whole page screenshot of the page with a modal or a popup HOT 2
- Capture.FULL not working with the latest Remote WebDriver HOT 9
- Screenshots with getBytes() don't have title when it is set HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium-shutterbug.