File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
py/test/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -593,20 +593,20 @@ def test_unpin_script(driver, pages):
593593 assert result ["value" ] == "undefined"
594594
595595
596- def test_execute_script_with_undefined_argument (driver , pages ):
596+ def test_execute_script_with_null_argument (driver , pages ):
597597 """Test executing script with undefined argument."""
598598 pages .load ("blank.html" )
599599
600600 result = driver .script .execute (
601601 """(arg) => {
602- if(arg!==undefined )
603- throw Error("Argument should be undefined , but was "+arg);
602+ if(arg!==null )
603+ throw Error("Argument should be null , but was "+arg);
604604 return arg;
605605 }""" ,
606606 None ,
607607 )
608608
609- assert result ["type" ] == "undefined "
609+ assert result ["type" ] == "null "
610610
611611
612612def test_execute_script_with_number_argument (driver , pages ):
You can’t perform that action at this time.
0 commit comments