Questions tagged [screenshotexception]
11 questions
11
votes
4 answers
How to implement PhantomJS with Selenium WebDriver using java
I'm going mad, really. I have this code:
public class Creazione extends TestCase {
private PhantomJSDriver driver;
private String baseUrl;
private boolean acceptNextAlert = true;
private StringBuffer verificationErrors = new…

Syrinxos
- 137
- 1
- 2
- 8
6
votes
0 answers
Screenshot Exception: Screenshot has been taken
Here is the Stack Trace of the PhantomJS Session. It randomly does this. I see that it says: Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken. The code works perfectly with a Firefox browser, but fails with…

Jay Bhagat
- 91
- 1
- 6
5
votes
1 answer
Screenshot taken at Exception via Selenium PhantomJS
Once in a while I get an exception in my Selenium PhantomJS tests that includes the text below
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
So has the screenshot really been taken like the message says?…

Arya
- 8,473
- 27
- 105
- 175
1
vote
1 answer
Unable to take screenshot of failed test cases
I am trying to take the screenshot of failed test cases, but getting an error related to automation extension:
public static String captureScreenshot(WebDriver driver, String screenshotName)
{
try
{
TakesScreenshot ts = (TakesScreenshot)driver;
…

Sanat
- 267
- 1
- 5
- 16
1
vote
2 answers
Selenium Remote Driver - NoSuchElementException is occurred during implementation of InternetExplorerDriver
Currently working with selenium remote driver. execution is working fine with Chrome remote driver but not working with IE. IE browser is launched after that NoSuchElementException displayed
similar issue I found at below url, I implemented all the…

chandu k
- 11
- 5
1
vote
2 answers
Selenium - IE 8 - Unable to find element with link text
In Selenium test (using version 2.40.0), I am not able to find element with link text using Internet Explorer 8 remotely. It works fine with Chrome.
Here there is (groovy) sample with a public web site.
import org.junit.Test
import…

banterCZ
- 1,551
- 1
- 22
- 37
1
vote
1 answer
JavascriptError while using Internet Explorer with WebDriverBackedSelenium
I am using WebDriverBackedSelenium for the automated testing of a website but my code is working fine for the chrome and firefox but problem in IE
Code is
WebDriver driver = new ChromeDriver();
String baseUrl = "https://mywebsite.com/";
selenium =…

Deepak Goel
- 5,624
- 6
- 39
- 53
0
votes
0 answers
Need to disable screenshot in iOS swift
I Need to disable taking screenshot in my app. I searched almost but there is no solution for preventing screenshot in iOS.Any help will be appreciable.
Thank You.

Bibeesh E B
- 1
- 2
0
votes
0 answers
Screenshot Lock not working in React native app on iOS devices
We want to lock screenshot on app screens in React Native app so that user is not allowed to take the screenshot. The feature is implemented successfully in android version of the same React Native app. But it is not working in iOS app which is…

Magna Opus
- 1
- 1
0
votes
1 answer
Selenium and PhantomJS - can not sendKeys()
When I try to send keys than I get an error
Exception in thread "main" org.openqa.selenium.InvalidElementStateException: {"errorMessage":"Element is not currently interactable and may not be manipulated"...
at…

rozerro
- 5,787
- 9
- 46
- 94
0
votes
2 answers
Selenium cannot scroll a div element
I have a div element and want to retrieve it's children. In order to do that i need to get them all in view, so I decided I need to scroll for them. The thing is, I get my element but when I call:
((JavascriptExecutor)…

diazazar
- 522
- 1
- 5
- 24