We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0063f commit 6205337Copy full SHA for 6205337
java/src/org/openqa/selenium/json/Input.java
@@ -97,7 +97,21 @@ public String toString() {
97
length = MEMORY_SIZE;
98
}
99
100
- return "Last " + length + " characters read: " + new String(buffer, offset, length);
+ String last = "Last " + length + " characters read: " + new String(buffer, offset, length);
101
+ int next = Math.min(MEMORY_SIZE, filled - (offset + length));
102
+
103
+ if (next > 0) {
104
+ if (next > 128) {
105
+ next = 128;
106
+ }
107
+ return last
108
+ + ", next "
109
+ + next
110
+ + " characters to read: "
111
+ + new String(buffer, offset + length, next);
112
113
114
+ return last;
115
116
117
/**
0 commit comments