katalon-studio - 在一个测试对象中输入数据会在katalon studio中的另一个测试对象上输入值
问题描述
我正在尝试在表单中输入值。但是在一个测试对象中输入值会在另一个测试对象中执行值。例如,在 input_Phone_form-control 中输入“3213213”,在 input_Location_form-control 中输入值
WebUI.openBrowser('')
WebUI.navigateToUrl('https://api-dev-new.eeposit.com/openseed/#/')
WebUI.setText(findTestObject('Object Repository/Page_Open Seed/input_LOG IN_form-control'), 'info@eeposit.com')
WebUI.setEncryptedText(findTestObject('Page_Open Seed/input_LOG IN_form-control'), '9G0Ij+ZUwmw=')
WebUI.click(findTestObject('Page_Open Seed/button_LOG IN'), FailureHandling.STOP_ON_FAILURE)
WebUI.click(findTestObject('Object Repository/Page_Open Seed/button_Add New Company'))
WebUI.setText(findTestObject('Object Repository/Page_Open Seed/input_Company Name_form-control'), 'company private limited')
WebUI.setText(findTestObject('Page_Open Seed/input_Location_form-control'), 'Florida')
WebUI.setText(findTestObject('Page_Open Seed/input_Phone_form-control'), '3213213')
WebUI.setText(findTestObject('Page_Open Seed/input_Email_form-control'), 'test@email.com' )
WebUI.click(findTestObject('Object Repository/Page_Open Seed/button_Save Company'))
解决方案
推荐阅读
- c# - “字符串未被识别为有效的日期时间”- 如何解决有关值组合的此错误?
- javascript - 如何在嵌套类方法回调中访问正确的“this”
- python - 是否可以编辑 Folium Geocoder 插件默认 CSS
- android - Android 应用可以检查另一个应用的代码透明度签名吗?
- angular - AngularFire登录时缺少或权限不足,刷新后工作
- unity3d - unity后处理层不出现
- typescript - Vue2/3 - 在组件之间共享功能。该函数有一个业务逻辑,如调用 API、突变
- javascript - 我需要 xpath 的解决方案
- python - 在字典中查找具有最多唯一值的键
- r - 如何让这个函数的输出打印到 R 中的不同行上?