Skip to content

Commit

Permalink
#1706: reverted retries for "target frame detached". screenshots fixe…
Browse files Browse the repository at this point in the history
…d in better way
  • Loading branch information
vdelendik committed Jun 9, 2022
1 parent d49f5ed commit 47cf701
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public class SpecialKeywords {

public final static String DRIVER_CONNECTION_REFUSED = "Driver connection refused";
public final static String DRIVER_CONNECTION_REFUSED2 = "Expected to read a START_MAP but instead have: END. Last 0 characters read";
public final static String DRIVER_TARGET_FRAME_DETACHED = "target frame detached";
public final static String DRIVER_NO_SUCH_WINDOW = "no such window: window was already closed";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public Response execute(Command command) throws IOException {

String msg = response.getValue().toString();
if (msg.contains(SpecialKeywords.DRIVER_CONNECTION_REFUSED)
|| msg.contains(SpecialKeywords.DRIVER_CONNECTION_REFUSED2)
|| msg.contains(SpecialKeywords.DRIVER_TARGET_FRAME_DETACHED)) {
|| msg.contains(SpecialKeywords.DRIVER_CONNECTION_REFUSED2)) {
LOGGER.warn("Enabled command executor retries: " + msg);
CommonUtils.pause(pause);
} else {
Expand Down

0 comments on commit 47cf701

Please sign in to comment.