File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
java/src/org/openqa/selenium/remote/html5 Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 20
20
import org .openqa .selenium .Capabilities ;
21
21
import org .openqa .selenium .html5 .WebStorage ;
22
22
import org .openqa .selenium .remote .AugmenterProvider ;
23
+ import org .openqa .selenium .remote .BrowserType ;
23
24
import org .openqa .selenium .remote .ExecuteMethod ;
24
25
25
26
import java .util .function .Predicate ;
26
27
28
+ import static org .openqa .selenium .remote .BrowserType .CHROME ;
29
+ import static org .openqa .selenium .remote .BrowserType .EDGE ;
30
+ import static org .openqa .selenium .remote .BrowserType .FIREFOX ;
31
+ import static org .openqa .selenium .remote .BrowserType .OPERA ;
27
32
import static org .openqa .selenium .remote .CapabilityType .SUPPORTS_WEB_STORAGE ;
28
33
29
34
public class AddWebStorage implements AugmenterProvider <WebStorage > {
30
35
31
36
@ Override
32
37
public Predicate <Capabilities > isApplicable () {
33
- return caps -> caps .is (SUPPORTS_WEB_STORAGE );
38
+ return caps ->
39
+ FIREFOX .equals (caps .getBrowserName ()) ||
40
+ CHROME .equals (caps .getBrowserName ()) ||
41
+ EDGE .equals (caps .getBrowserName ()) ||
42
+ OPERA .equals (caps .getBrowserName ()) ||
43
+ caps .is (SUPPORTS_WEB_STORAGE );
34
44
}
35
45
36
46
@ Override
You can’t perform that action at this time.
0 commit comments