0

test Zul with Sahi problem

asked 2013-07-23 08:46:13 +0800

ronyang gravatar image ronyang
1

updated 2013-07-23 08:53:23 +0800

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?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-07-23 08:46:13 +0800

Seen: 7 times

Last updated: Jul 23 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More