Closed mwilc0x closed 2 years ago
Actually, it seems that .submitForm
should not be used with w3c:true
?
Am now seeing this for chrome
with w3c:true
enabled (we have only just enabled):
TimeoutError: An error occurred while running .submitForm() command on <input[value=Update]>: unknown command; unknown command: Cannot call non W3C standard command while in W3C mode {"status":-1,"value":{"error":"unknown command","message":"unknown command: Cannot call non W3C standard command while in W3C mode","stacktrace":""},"code":"","errorStatus":"","error":"unknown command: Cannot call non W3C standard command while in W3C mode","httpStatusCode":404}e
Is this WAI? Is there a way that the error message could be updated in FF to provide same context as does Chrome?
We're going to need to add something like what selenium does.
The submitForm
command is based on a legacy endpoint from the JsonWire protocol which was been removed in the W3C Webdriver spec. I don’t think we can do anything to resolve this in Nightwatch v1.x . The incompatibility has been fixed in Nightwatch v2. You can try that out
Nightwatch v2 is using selenium underneath for submitForm
command.
Hi,
Am seeing an error when using
.submitForm()
with firefox. Am not seeing this issue with chrome. Note: the form can be successfully submitted withclick()
.Environment
Test Code
HTML
Configuration