“assertEditable” and “assertNotEditable” command in selenium IDE

Last updated on October 8th, 2025 at 11:36 am

“assertEditable”  Command
You can use “assertEditable” command with only and only input fields like text box, list box, drop downs etc. You can check and assert that targeted element is editable or not. If targeted element is not editable then it will stop execution of remaining selenium script.
New Test
CommandTargetValue
openhttps://www.google.com
assertEditableid=gbqfq
assertNotEditableid=gbqfq
assertEditableid=gbqfq

Here in this example, second command(assertEditable) will check that target element search text box(id=gbqfq)is editable or not. If its editable then and then it will execute next command. If it is not editable

then it will stop execution of next all commands.

“assertNotEditable” Command
Same as “assertEditable”  Command, “assertNotEditable” command will fail to execute if specified element is not editable. Here it will check opposite condition compared to “assertNotEditable” command.
Third command(assertNotEditable) will check that is search text box(id=gbqfq)is editable or not. It will stop execution if it is editable.
author avatar
Aravind QA Automation Engineer & Technical Blogger
Aravind is a QA Automation Engineer and technical blogger specializing in Playwright, Selenium, and AI in software testing. He shares practical tutorials to help QA professionals improve their automation skills.
Stay Updated with New Articles
Get the latest tutorials and insights delivered to your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *