Comments (4)
Hi @sridhar73-hub ,
Could you please let us know the exact exception you are getting (you've added the cause to the description) and selenium/browse versions you are using?
from selenium-shutterbug.
Thank you for respond, please check the blow details.
Appium - v1.8.1
Selenium - 3.14
selenium-shutterbug - 0.9.3
Android Mobile - v9
Chrome - 77
Sep 23, 2019 8:01:28 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
FAILED: initiateApp
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.assertthat.selenium_shutterbug.utils.web.Browser.sendCommand(Browser.java:276)
at com.assertthat.selenium_shutterbug.utils.web.Browser.evaluate(Browser.java:281)
at com.assertthat.selenium_shutterbug.utils.web.Browser.takeScreenshotEntirePageUsingChromeCommand(Browser.java:187)
at com.assertthat.selenium_shutterbug.utils.web.Browser.takeScreenshotEntirePage(Browser.java:119)
at com.assertthat.selenium_shutterbug.core.Shutterbug.shootPage(Shutterbug.java:110)
at com.assertthat.selenium_shutterbug.core.Shutterbug.shootPage(Shutterbug.java:72)
at com.assertthat.selenium_shutterbug.core.Shutterbug.shootPage(Shutterbug.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:822)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1130)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:113)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:206)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:177)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.assertthat.selenium_shutterbug.utils.web.Browser.sendCommand(Browser.java:273)
... 31 more
Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: T. Last 1 characters read: T
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'DESKTOP-TKATHPH', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
Driver info: driver.version: AppiumDriver
at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:121)
at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:137)
at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:123)
at org.openqa.selenium.json.Json.toType(Json.java:60)
at org.openqa.selenium.json.Json.toType(Json.java:50)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:87)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
... 36 more
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@721e0f4f: 74 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@2aafb23c: 20 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@7bb11784: 524 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@61a52fbd: 353 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 33 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@6ad5c04e: 49 ms
from selenium-shutterbug.
HI @sridhar73-hub ,
Cound you please try downgrading shutterbug version to 0.6 and try with the following command Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS,500,true).save("/screenshots");
(updating save location to specific one you are using).
from selenium-shutterbug.
closing ticket due to inactivity
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
- Incorrect equals check for "microsoft edge" browser if driver instance is of RemoteWebDriver in takeFullPageScreenshot method in Browser class HOT 6
- 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.