File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/webdriver/BiDi/Modules/Script Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20- using OpenQA . Selenium . BiDi . Communication . Json . Converters ;
2120using System . Collections . Generic ;
2221using System . Text . Json . Serialization ;
2322
Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20- using OpenQA . Selenium . BiDi . Communication . Json . Converters ;
2120using System ;
2221using System . Collections . Generic ;
2322using System . Text . Json ;
@@ -56,12 +55,12 @@ public abstract record RemoteValue
5655{
5756 public static implicit operator int ( RemoteValue remoteValue ) => ( int ) ( ( Number ) remoteValue ) . Value ;
5857 public static implicit operator long ( RemoteValue remoteValue ) => ( long ) ( ( Number ) remoteValue ) . Value ;
59- public static implicit operator string ( RemoteValue remoteValue )
58+ public static implicit operator string ? ( RemoteValue remoteValue )
6059 {
6160 return remoteValue switch
6261 {
6362 String stringValue => stringValue . Value ,
64- Null => null ! ,
63+ Null => null ,
6564 _ => throw new BiDiException ( $ "Cannot convert { remoteValue } to string")
6665 } ;
6766 }
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ await context.Script.CallFunctionAsync($$"""
8989 }
9090
9191 [ Test ]
92+ [ IgnoreBrowser ( Selenium . Browser . Edge , "Chromium can't handle -0 argument as a number: https://github.com/w3c/webdriver-bidi/issues/887" ) ]
93+ [ IgnoreBrowser ( Selenium . Browser . Chrome , "Chromium can't handle -0 argument as a number: https://github.com/w3c/webdriver-bidi/issues/887" ) ]
9294 public void CanCallFunctionWithArgumentRecentDate ( )
9395 {
9496 const string PinnedDateTimeString = "2025-03-09T00:30:33.083Z" ;
You can’t perform that action at this time.
0 commit comments