-
-
Notifications
You must be signed in to change notification settings - Fork 827
Open
Labels
Description
I encountered a problem while on exporting a test case into python (also Java, so maybe any lang so)
Error message
Unable to complete code export
Test 'case001' has a problem: Incomplete command 'type'. Missing expected value argument.
Condition
Command: type
Target: xxx
Value:
*Value is blank. This condition was made by recording function of Selenium IDE.
I expect followings:
self.driver.find_element(By.NAME, "xxx").send_keys("")
Workaround:
put some strings into the value, export, and replace.
Fundamentally:
I think the type command would be converted into clear() and send_keys().
In docs, at send keys section said that "Unlike the simple "type" command, which forces the specified value into the page directly, this command will not replace the existing content."
side file:
{
"id": "b2cbd104-f932-4b57-a688-05ef389b1f55",
"version": "2.0",
"name": "Test",
"url": "https://localhost:8080",
"tests": [{
"id": "8e19e72e-aa70-4fdb-bd0a-98e7970b5d36",
"name": "test",
"commands": [{
"id": "bf0bc198-b5ea-40e2-993a-35953a54afcd",
"comment": "",
"command": "type",
"target": "name=comment",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "3ea5402a-d61d-4523-ba8d-933818b8ca4a",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": []
}],
"urls": ["https://localhost:8080/"],
"plugins": []
}
I'm sorry if I overlooked any information that I have to read.