File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Revision history for Selenium-Remote-Driver
22
3+ 1.33 06-17-2019 TEODESIAN
4+ [BUG FIXES]
5+ - Add chrome shim to disable sandboxing by default so that Selenium::Chrome usage isn't broken by default
6+ - Report failures to obtain sessions better
7+
381.32 06-12-2019 TEODESIAN
49 [New Features]
510 - Add support for mozilla full pags screenshots
Original file line number Diff line number Diff line change 11name = Selenium-Remote-Driver
2- version = 1.32
2+ version = 1.33
33author = George S. Baugh <george@troglodyne.net>
44author = Aditya Ivaturi <ivaturi@gmail.com>
55author = Daniel Gempesaw <gempesaw@gmail.com>
Original file line number Diff line number Diff line change @@ -1023,6 +1023,14 @@ sub _request_new_session {
10231023 }
10241024 }
10251025
1026+ # Fix broken out of the box chrome because they hate the maintainers of their interfaces
1027+ if ( $self -> isa(' Selenium::Chrome' ) ) {
1028+ if ( exists $args -> {desiredCapabilities } ) {
1029+ $args -> {desiredCapabilities }{chromeOptions }{args } //= [];
1030+ push (@{$args -> {desiredCapabilities }{chromeOptions }{args }}, qw{ no-sandbox disable-dev-shm-usage} );
1031+ }
1032+ }
1033+
10261034 # Get actual status
10271035 $self -> remote_conn-> check_status();
10281036
@@ -1037,6 +1045,10 @@ sub _request_new_session {
10371045 my $rc = $self -> remote_conn;
10381046 my $resp = $rc -> request( $resource_new_session , $args , );
10391047
1048+ if ( $resp -> {cmd_status } && $resp -> {cmd_status } eq ' NOT OK' ) {
1049+ croak " Could not obtain new session: " . $resp -> {cmd_return }{message };
1050+ }
1051+
10401052 if ( ( defined $resp -> {' sessionId' } ) && $resp -> {' sessionId' } ne ' ' ) {
10411053 $self -> session_id( $resp -> {' sessionId' } );
10421054 }
You can’t perform that action at this time.
0 commit comments