File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
java/test/org/openqa/selenium/remote Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .remote ;
19
19
20
- import static org .assertj .core .api .Assertions .assertThat ;
21
- import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
22
- import static org .openqa .selenium .OutputType .BASE64 ;
23
- import static org .openqa .selenium .testing .drivers .Browser .HTMLUNIT ;
24
-
25
20
import org .junit .Test ;
26
21
import org .openqa .selenium .By ;
27
22
import org .openqa .selenium .NoSuchElementException ;
30
25
import org .openqa .selenium .testing .Ignore ;
31
26
import org .openqa .selenium .testing .JUnit4TestBase ;
32
27
28
+ import static org .assertj .core .api .Assertions .assertThat ;
29
+ import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
30
+ import static org .openqa .selenium .OutputType .BASE64 ;
31
+ import static org .openqa .selenium .testing .drivers .Browser .HTMLUNIT ;
32
+
33
33
@ Ignore (HTMLUNIT )
34
34
public class RemoteWebDriverScreenshotTest extends JUnit4TestBase {
35
35
@@ -56,13 +56,6 @@ public void testCanAugmentWebDriverInstanceIfNecessary() {
56
56
return ;
57
57
}
58
58
59
- RemoteWebDriver remote = (RemoteWebDriver ) driver ;
60
- Boolean screenshots = (Boolean ) remote .getCapabilities ()
61
- .getCapability (CapabilityType .TAKES_SCREENSHOT );
62
- if (screenshots == null || !screenshots ) {
63
- System .out .println ("Skipping test: remote driver cannot take screenshots" );
64
- }
65
-
66
59
driver .get (pages .formPage );
67
60
WebDriver toUse = new Augmenter ().augment (driver );
68
61
String screenshot = ((TakesScreenshot ) toUse ).getScreenshotAs (BASE64 );
You can’t perform that action at this time.
0 commit comments