当前位置: 首页 > news >正文

网站左侧固定广告代码外国做视频在线观看网站

网站左侧固定广告代码,外国做视频在线观看网站,百度网盟推广组所拥有的定向功能,中小企业建网站注意代码示例 下面的代码示例将讲解如何使用Ranorex API来编写代码模块#xff0c;或者是使用用户代码来扩展录制的模块。 在代码中使用对象库 使用对象库等待UI元素 建立Adapter来访问更多的属性和方法 为对象库元素建立一组Adapter 使用Validate类 强制一个测试用例失败 设置aut…代码示例 下面的代码示例将讲解如何使用Ranorex API来编写代码模块或者是使用用户代码来扩展录制的模块。 在代码中使用对象库 使用对象库等待UI元素 建立Adapter来访问更多的属性和方法 为对象库元素建立一组Adapter 使用Validate类 强制一个测试用例失败 设置automation speed 访问测试用例和测试簇的上下文 高级代码示例 如果做基于图像的自动化 如何查找和比较图像 处理意外的对话框在代码中使用对象库 C# [TestModule(“D451F1D1-C347-4B58-939F-F6187642EB56”, ModuleType.UserCode, 1)] public class UsingRepository : ITestModule { // Repository object to access UI elements 用来访问UI元素的对象库对象 MyFirstTestProjectRepository repo MyFirstTestProjectRepository.Instance; /// summary /// Constructs a new instance.  创建一个新实例 /// /summary public UsingRepository() { // Do not delete – a parameterless constructor is required! 不要删需要无参构造器 } void ITestModule.Run() { Mouse.DefaultMoveTime 300; Keyboard.DefaultKeyPressTime 100; Delay.SpeedFactor 1.0; // Using Ranorex.Form adapter represented by ‘MyApp’  用Ranorex.Form adapter来表示MyApp // ‘MyApp’ is used as a folder within the repository;  MyApp是对象库中的文件夹 // the ‘Self’ property returns an object of type Ranorex.Form self用来返回对象 // Activates application 激活应用 repo.MyApp.Self.Activate(); // Log ‘Active’ state 记录状态 Report.Info(repo.MyApp.Self.Active.ToString()); // Maximize, Minimize and Restore 最大化最小化复原大小 repo.MyApp.Self.Maximize(); repo.MyApp.Self.Minimize(); repo.MyApp.Self.Restore(); // Closes application 关闭应用 repo.MyApp.Self.Close(); // Using Ranorex.Button adapter represented by ‘ButtonAdd’ // Read and log value of ‘Text’ attribute Report.Info(repo.MyApp.Buttons.ButtonAdd.Text); // Press button 按下按钮 repo.MyApp.Buttons.ButtonAdd.Press(); // Read and log value of ‘Enabled’ attribute 读取并记录属性 Report.Info(repo.MyApp.Buttons.ButtonAdd.Enabled.ToString()); // Using Ranorex.RadioButton adapter // represented by ‘GenderOption’ // Select radio button 选择radio button repo.MyApp.GenderOption.Select(); // Accessing listitems of Ranorex.List adapter // represented by ‘CategoryList’ IListranorex.listitem listItems repo.MyApp.CategoryList.Items; foreach ( Ranorex.ListItem item in listItems ) { Report.Info(item.Text ” is member of CategoryList”); } // Using Ranorex.MenuItem to open ‘File’ menu repo.MyApp.MenuItemFile.Select(); // Selecting sub menu item ‘Connect’ repo.FileMenu.Connect.Select(); // Read and log ‘Enabled’ state of menu item ‘Connect’ Report.Info(repo.FileMenu.Connect.Enabled.ToString()); } } VB.NET Public Class UsingRepository Implements ITestModule ‘ Repository object to access UI elements Private repo As MyFirstTestProjectRepository MyFirstTestProjectRepository.Instance ”’ summary ”’ Constructs a new instance. ”’ /summary ‘ Do not delete – a parameterless constructor is required! Public Sub New() End Sub ”’ summary ”’ Performs the playback of actions in this module. ”’ /summary ”’ remarksYou should not call this method directly, instead pass the module ”’ instance to the see cref”TestModuleRunner.Run(ITestModule)” method ”’ that will in turn invoke this method./see/remarks Private Sub ITestModule_Run() Implements ITestModule.Run Mouse.DefaultMoveTime 300 Keyboard.DefaultKeyPressTime 100 Delay.SpeedFactor 1.0 ‘ Using Ranorex.Form adapter represented by ‘MyApp’ ‘ ‘MyApp’ is used as a folder within the repository; ‘ the ‘Self’ property returns a Ranorex.Form object ‘ Activates application repo.MyApp.Self.Activate() ‘ Log ‘Active’ state Report.Info(repo.MyApp.Self.Active.ToString()) ‘ Maximize, Minimize and Restore repo.MyApp.Self.Maximize() repo.MyApp.Self.Minimize() repo.MyApp.Self.Restore() ‘ Closes application repo.MyApp.Self.Close() ‘ Using Ranorex.Button adapter represented by ButtonAdd’ ‘ Read and log value of ‘Text’ attribute Report.Info(repo.MyApp.Buttons.ButtonAdd.Text) ‘ Press button repo.MyApp.Buttons.ButtonAdd.Press() ‘ Read and log value of ‘Enabled’ attribute Report.Info(repo.MyApp.Buttons.ButtonAdd.Enabled.ToString()) ‘ Using Ranorex.RadioButton adapter ‘ represented by ‘GenderOption’ ‘ Select radio button repo.MyApp.GenderOption.[Select]() ‘ Accessing listitems of Ranorex.List adapter ‘ represented by ‘CategoryList’ Dim listItems As IList(Of Ranorex.ListItem) repo.MyApp.CategoryList.Items For Each item As Ranorex.ListItem In listItems Report.Info(item.Text ” is member of CategoryList”) Next ‘ Using Ranorex.MenuItem to open ‘File’ menu repo.MyApp.MenuItemFile.[Select]() ‘ Selecting sub menu item ‘Connect’ repo.FileMenu.Connect.[Select]() ‘ Read and log ‘Enabled’ state of menu item ‘Connect’ Report.Info(repo.FileMenu.Connect.Enabled.ToString()) End Sub End Class
http://www.eeditor.cn/news/123513/

相关文章:

  • 电商购物网站做问卷的网站好
  • 网站被主流搜索引擎收录的网页数量是多少建设外卖网站需要哪些资质
  • 添加qq好友的超链接做网站wordpress购买资源插件
  • php网站培训班全球50个大网站开发语言
  • 东莞松山湖东华医院网站建设优化推广教程
  • 设计师培训招生视频宁阳网站seo推广
  • 教学网站虚拟主机和网站空间
  • 网站建设正规代理商企业网络营销策划平台
  • app和微网站的区别是什么福州制作网站软件
  • 网站建设公司排名深圳中国建设银行app官方下载
  • 做科技汽车的视频网站有哪些网站建设源代码文件
  • 德州网站优化公司做网站爱
  • 做vip视频网站赚钱吗有没有网站开发软件
  • 潮州网站seo趣味阁小程序入口
  • 网站开发设计费用浏览器查看WordPress主题
  • 网站建设 6万元oppo自带软件商店下载
  • 好的活动策划网站湖州市南浔区建设局网站
  • 网站专题页面怎么做wordpress绝对路径图片不显示
  • 网站美工设计流程企业网站建设套餐费用
  • 揭阳网站制作计划江苏省城乡和住房建设厅网站首页
  • 黑龙江省营商环境建设监督局网站中山企业网站建设定制
  • 网站建设服务详细解读12306网站制作
  • 电话销售做网站推销保定清苑城市建设网站
  • 建立一个企业网站百度手机助手app免费下载
  • 上海建设网站是多少建筑培训网安全员
  • 阳高网站建设河南网站推广公司
  • 企业网站需要哪些功能自己做软件 做网站需要学会哪些
  • 做网站应该问客户什么需求新浪云搭建wordpress
  • 丰台手机网站设计杨浦企业网站建设
  • 做名片最好的网站专业网站优化关键词