angular - 机器人框架 | 选择文件 | 角 | 不工作
问题描述
我不知道如何使用“选择文件”功能
我有以下网站,我想在其中上传文件 C://RobotAutomation/Customers/in/test.csv
该网站如下所示
对应的html如下:
我在 RobotFramework 中的测试脚本如下:
Click Button xpath=//button[@name='file']
Sleep 5
Choose File xpath=//button[@name='file'] C://RobotAutomation/Customers/in/test.csv
结果是打开了文件对话框,但它不会自动填充 test.csv 文件。
我不确定是否指定了正确的定位器。这是因为使用了 Angular 代码。
我在这里做错了什么?
解决方案
试试这种方式,对我有用 C:\\RobotAutomation\\Customers\\in\\test.csv
推荐阅读
- vba - AfterUpdate On ComboBox:显示选择而不需要其他操作
- arduino - Arduino IDE 给出以下代码错误
- java - Jdbc:Connection 在我的程序中返回 null 怎么办?
- arrays - 在 pngs 上循环运行 ffmpeg 以提高效率?
- ios - SwiftUI 中的 NavigationLink 不再工作
- python - Python pandas 数据重构
- drupal-8 - 如何控制 Drupal 8 monolog dblog 日志级别
- react-native - 在图像上添加覆盖阴影
- ajax - 为什么我不能用 GET 参数绑定查询字符串中的日期?
- shell - #++ 和 #-- 在脚本头注释中