File tree Expand file tree Collapse file tree 8 files changed +10
-43
lines changed Expand file tree Collapse file tree 8 files changed +10
-43
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ v4.0.0-rc-2
2
2
===========
3
3
4
4
* Supported CDP versions: 85, 92, 93
5
+ * Moved NetworkInterceptor to org.opeqa.selenium.devtools
5
6
* NetworkInterceptor now takes a Filter to allow responses to be
6
7
captured and rewritten.
7
8
* Added a "relay" option to better support forwarding sessions to
Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
- package org .openqa .selenium .support . devtools ;
18
+ package org .openqa .selenium .devtools ;
19
19
20
20
import org .openqa .selenium .WebDriver ;
21
21
import org .openqa .selenium .devtools .DevTools ;
57
57
*/
58
58
public class NetworkInterceptor implements AutoCloseable {
59
59
60
+ /**
61
+ * Return this from a {@link Routable} in order to have the browser
62
+ * continue the request unmodified.
63
+ */
60
64
public static final HttpResponse PROCEED_WITH_REQUEST = new HttpResponse ()
61
65
.addHeader ("Selenium-Interceptor" , "Continue" )
62
66
.setContent (utf8String ("Original request should proceed" ));
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ java_export(
16
16
visibility = ["//visibility:public" ],
17
17
exports = [
18
18
":page-factory" ,
19
- "//java/src/org/openqa/selenium/support/devtools" ,
20
19
"//java/src/org/openqa/selenium/support/events" ,
21
20
"//java/src/org/openqa/selenium/support/locators" ,
22
21
"//java/src/org/openqa/selenium/support/ui:clock" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ java_selenium_test_suite(
16
16
deps = [
17
17
":test-lib" ,
18
18
"//java/src/org/openqa/selenium/devtools" ,
19
+ "//java/src/org/openqa/selenium/grid/security" ,
19
20
"//java/src/org/openqa/selenium/json" ,
20
21
"//java/src/org/openqa/selenium/remote" ,
21
22
"//java/src/org/openqa/selenium/support" ,
22
23
"//java/test/org/openqa/selenium/environment" ,
23
24
"//java/test/org/openqa/selenium/testing:annotations" ,
24
25
"//java/test/org/openqa/selenium/testing:test-base" ,
25
- "//java/src /org/openqa/selenium/grid/security " ,
26
+ "//java/test /org/openqa/selenium/testing/drivers " ,
26
27
artifact ("com.google.guava:guava" ),
27
28
artifact ("junit:junit" ),
28
29
artifact ("org.assertj:assertj-core" ),
Original file line number Diff line number Diff line change 29
29
import org .openqa .selenium .remote .http .Contents ;
30
30
import org .openqa .selenium .remote .http .HttpResponse ;
31
31
import org .openqa .selenium .remote .http .Route ;
32
- import org .openqa .selenium .support .devtools .NetworkInterceptor ;
33
32
import org .openqa .selenium .testing .NotYetImplemented ;
34
33
import org .openqa .selenium .testing .drivers .Browser ;
35
34
Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
- package org .openqa .selenium .support . devtools ;
18
+ package org .openqa .selenium .devtools ;
19
19
20
20
import com .google .common .net .MediaType ;
21
21
import org .junit .After ;
25
25
import org .openqa .selenium .By ;
26
26
import org .openqa .selenium .WebDriver ;
27
27
import org .openqa .selenium .devtools .HasDevTools ;
28
+ import org .openqa .selenium .devtools .NetworkInterceptor ;
28
29
import org .openqa .selenium .environment .webserver .NettyAppServer ;
29
30
import org .openqa .selenium .remote .http .Contents ;
30
31
import org .openqa .selenium .remote .http .Filter ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments