关闭设计模式时,单击按钮控件。
最常见的做法是使用按钮控件。
The most common way to do this is via the button control. There are several styles of buttons.
对于简单的示例,使用一个按钮控件。
弹出按钮容器和按钮控件
单击按钮控件后,将会显示一个消息,如图12所示。
When the button control is clicked, a message displays as shown in figure 12.
注意,现在当鼠标置于按钮控件上方时,将会显示添加到Help文本中的文字。
Notice now that when the mouse is over the button control, the text you added to the Help text is displayed.
模拟用户在文本框和Combobox控件中键入颜色的操作之后,自动化会模拟点击按钮控件。
After simulating the actions of a user entering colors for the textbox and combobox controls, the automation simulates clicking of the button control.
现在只需要对按钮控件进行定位或者修改尺寸(按照您的意愿),然后关闭设计模式以测试控件。
All that is left to do now is to position or size the button control as you want and then turn off design mode to test the control.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
您已经掌握了基础技能,因此,让我们看看一个实际示例,结合一个push 按钮控件和一个更为复杂的宏。
You have mastered the basics, so let's look at a practical example that combines a push button control with a more complex macro.
您必须键入一些输入,单击按钮控件,直观验证结果消息,并将结果记录到Excel电子表格或其他数据存储中。
You'd have to enter some inputs, click the button control, visually verify the result message, and record the result into an Excel spreadsheet or other data store.
XDIME也支持菜单列表、复选框和单选按钮等控件。
XDIME also supports controls like menu lists, checkboxes, and radio buttons.
这些按钮并不是标准控件。
除用户选择区之外,还有一个包含控件按钮和预览窗格的部分。
In addition to the user selection area, there is a section containing the control buttons and a preview pane.
必须将诸如submit按钮之类的表单控件本地化。
所有windows应用程序的按钮,windows控件以及对话框的绘制都使用了它,所以我们知道它是经过了测试的,而且工作良好。
It is used to draw buttons, window controls, and dialog boxes for every Windows application, so we know that it's tested and works well.
在create表单中,拖动或双击编辑框下面和按钮上面的RichText控件。
On the create form, drag over or double-click a Rich Text control below the edit boxes and above the buttons.
弹出对话框控件支持两种按钮 —cancel和normal。
There are two types of buttons supported by the pop-up dialog control—cancel and normal.
当您选中“Inputtingdata”单选按钮时,CheckBox将会位于控件类型列表的顶部。
When the "Inputting data" radio button is selected, Check Box will be at the top of the control types list.
您可以使用该对话框来观察如何使用find方法在对话框中定位按钮,以及为每个控件获得一个TestObject。
You can use this dialog to see how to use find to locate the buttons in the dialog and to get a TestObject for each control.
导航到Edit模式时,portlet页面应包含三个按钮和两个文本控件。
When navigating to Edit mode, the portlet page should contain three buttons and two text controls.
这种方法计算出按钮中心相对于actionBar 控件的位置,然后点击此点。
This method calculates where the middle of any particular button is, relative to the actionBar control itself, and then clicks that point.
目前,应用中一个明显需要一些加工的地方是我们用户控件的“Close”(关闭)按钮
Right now there is one obvious place in the application that clearly needs some work - the "Close" button on our User Control
类似于按钮,这也是一个基于Swing的控件。
为此,我们为每一类型控件使用了一组注册函数:按钮、标签等等。
For this we use a set of register functions for each type of widget: buttons, labels, and so on.
浏览器和服务器的交互只能由页面中有限的控件发起——常常是链接和按钮。
The interaction between the browser and the server is initiated by a limited number of controls on the page — usually only by links and buttons.
按钮是Set、Reset和Backto Viewmode;文本控件用于接受链接名称和链接的URL。
The buttons are Set, Reset, and Back to View mode; the text controls are to accept the Link name and the URL of the link.
按钮是Set、Reset和Backto Viewmode;文本控件用于接受链接名称和链接的URL。
The buttons are Set, Reset, and Back to View mode; the text controls are to accept the Link name and the URL of the link.
应用推荐