清单4将change_url函数绑定到对“Go !”按钮的单击事件中。
Listing 4 binds the function change_url to a click of the "Go!" button.
BuddyListDelegate 接口将处理先前定义的 viewAction 按钮的单击事件。
The BuddyListDelegate interface handles clicks to the viewAction button, which you defined previously.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
应用推荐