Robot Framework Version 2.8.3 Selenium2Library Version 1.4
I am encountering an issue related to the controls utilized in the application being tested. Instead of using ids for controls, like the traditional coding approach, my application has been designed with 'CSS - Class'.
For instance, a button is coded as:
The identifier "btn-do-login" is defined in a CSS file.
When I input ids into the username and password fields, and then use the Click Element keyword with btn-do-login, the element is clicked but the data isn't submitted to the host like it would with the Submit Form keyword.
It's important to note that the application doesn't include any form; instead, there is a Div associated with a CSS class.
Below is the complete hierarchy:
<div class="login-form">
<div class="form-element-username"> … </div>
<div class="form-element-password"> … </div>
<div id="btn-do-login" class="wbutton-login"> … </div>
</div>
Any assistance on how to post data to the host would be greatly appreciated.
Additionally, even when manually entering login credentials on the WebPage opened by WebDriver and attempting to submit it manually, I still encounter a javascript error and the page isn't submitted. To log in manually, I must close the browser instance opened by WebDriver and manually open a new instance.
Lastly, can anyone confirm if Selenium2Library supports HTML5?
This outlines what I've done so far:
> Login With Valid Credentials
>> Input Text ${id_login_email} ${country}
>>> Input Text ${id_login_password} ${PASSWD}
>>>> CLick Element btn-do-login
The variables are defined in separate Python files and imported as VARIABLE in the setting table.
Thank you in advance.
--Raj Sarodaya