Skip to content

Submit Form keyword doesn't submit the form #144

@finspin

Description

@finspin

Selenium2Library 1.1.0
Robot Framework 2.7.5 (Python 2.7.3 on linux2)
Browser: Firefox 16.0.2

When I run keyword 'Submit Form id=ingr-form' where ingr-form is the id of the form element, RF reports the keyword as passed but the form is not submitted.

When I instead use keyword 'Click Button name=ingrForm' to submit the form, the form is successfully submitted.

Here is the form's HTML code:

<form id="ingr-form" method="post" action="/">
    <p>
        <label for="id_ingr-name">Name:</label> <input type="text" maxlength="30" name="ingr-name" id="id_ingr-name">
    </p>
    <p>
        <label for="id_ingr-category">Category:</label> 
        <select id="id_ingr-category" name="ingr-category">
            <option selected="selected" value="">---------</option>
            <option value="1">Value 1</option>
            <option value="2">Value 2</option>
        </select></p>
    <input type="submit" value="Save" name="ingrForm">
</form>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions