Listing 3 shows the window text code from Listing 2 with an added ARIA "live" tag.
清单3所示的窗口文本代码在清单2的基础上添加了一个ARIA“活动”标记。
Set the text in the Code window.
设置代码窗口中的文本。
Next, instead of the above code, use the find method to locate the Place an Order dialog by using the label text for that window in the dialog.
接下来,使用find方法代替上面的代码,利用对话框中该窗口的标签文本来定位Place an Order对话框。
应用推荐