-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1,the login Zul as:
<zk>
<window width="400px" border="normal"
title="Login (with same username as password)"
apply="org.zkoss.selenium_example.LoginController" >
<grid>
<rows>
<row>
User Name:
<textbox id="username"></textbox>
</row>
<row>
Password:
<textbox id="password" type="password"></textbox>
</row>
<row>
<label id="message" style="color: red;" />
<button id="login" label="login"/>
</row>
</rows>
</grid>
</window>
</zk>
2, the Sahi login recorde Sah Script as:
_setValue(_textbox("username_textbox_6"), "admin");
_setValue(_password("password_textbox_9"), "admin");
_click(_button("login"));
3,when play back the Sah,problem happens that the username and password can not be typed into the field,even when i change the _setValue api to _type and _blur which works in Selenium
_type(_textbox("username_textbox_6"), "admin");
_blur(_textbox("username_textbox_6"));
_type(_password("password_textbox_9"), "admin");
_blur(_textbox("password_textbox_9"));
How to use the Sahi api to type into the text field?
Asked: 2013-07-23 08:46:13 +0800
Seen: 7 times
Last updated: Jul 23 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status