Skip to content

Commit 36f8c5c

Browse files
authored
Making changes to make sdk sel 3 compatible (#232)
* Making changes to make sdk sel 3 compatible * Making changes more simpler
1 parent 1d2c685 commit 36f8c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/percy/selenium/Percy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void screenshot(String name, Map<String, Object> options) throws Unsuppor
198198
CommandExecutor executor = ((RemoteWebDriver) driver).getCommandExecutor();
199199

200200
// Get HttpCommandExecutor From TracedCommandExecutor
201-
if (executor instanceof TracedCommandExecutor) {
201+
if (executor.getClass().toString().contains("TracedCommandExecutor")) {
202202
Class className = executor.getClass();
203203
try {
204204
Field field = className.getDeclaredField("delegate");

0 commit comments

Comments
 (0)