What are the current limitations on the web element action? At present I am unable to do the following on even a simple HTML page.
- Get current value from an input field
- Get current value from a drop down field
- Get current state from a tickbox
- Set value of a checkbox (tick it)
My use case around checkboxes relates to confirming the current state of a checkbox before ticking it (as clicking on an existing tickbox will actually clear the value).
At present the only successful operations I have managed with the web element action is to get the inner text value of a web page element (e.g. a span) and to set the value of a text input field.
Can you confirm whether this is expected behaviour at present and whether these core capabilities are being incorporated soon?
Example HTML page and script are below:
<html> <body> <form action="dummy"> Test1: <span id="test1" ><h1>Inner text</h1></span><br/> Test2: <select name="test2"> <option /> <option value="test2-val1" selected="true" >Val 1</option> <option value="test2-val2" >Val 2</option> </select><br/> Test3: <input value="test3" name="test3" type="password" /><br/> Test4: <input value="test4" name="test4" type="checkbox" checked="true" /><br/> Test5: <input value="test5" name="test5" /><br /> </form> </body> </html>
My script is as follows:
My expected results in notepad would be the following:
Inner text test2-val1 test3 test4 test5
Instead I get the following
Inner text Val 1 Val 2