Giter Club home page Giter Club logo

Comments (6)

glibas avatar glibas commented on June 23, 2024

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.

racchouhan12 avatar racchouhan12 commented on June 23, 2024

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.

glibas avatar glibas commented on June 23, 2024

Could you please also post the snippet of code of driver creation

from selenium-shutterbug.

racchouhan12 avatar racchouhan12 commented on June 23, 2024
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.

racchouhan12 avatar racchouhan12 commented on June 23, 2024

@glib-briia are you planning to release this change anytime soon?

from selenium-shutterbug.

glibas avatar glibas commented on June 23, 2024

@racchouhan12 released. Will be available in maven central in couple hours.

from selenium-shutterbug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.