提问人:reyansh yadav 提问时间:11/9/2023 更新时间:11/9/2023 访问量:21
如何在机器人框架中与日历交互?
How to interact with Calendar in Robot Framework?
问:
我正在尝试在日历中输入出生日期,但每次它显示元素时都是不可交互的。我已经尝试了以下选项。
代码:
将焦点设置为元素 xpath:/html/body/ion-modal/app-add-customer-popup/ion-content/div/div/div/div/form/div/div/div[6]/div/input
${Horizontal}= Get Horizontal Position xpath:/html/body/ion-modal/app-add-customer-popup/ion-content/div/div/div/form/div/div/div[6]/div/input
${Vertical}= Get Vertical Position xpath:/html/body/ion-modal/app-add-customer-popup/ion-content/div/div/div/form/div/div/div[6]/div/input
Input Text xpath:/html/body/ion-modal/app-add-customer-popup/ion-content/div/div/div/form/div/div/div[6]/div/input 1993-10-14
${year} ${month} ${day}= Evaluate "1993-10-14".split("-")
${day} ${month} ${year}= Evaluate "14/10/1993".split("/")
Click Element At Coordinates xpath:/html/body/ion-modal/app-add-customer-popup/ion-content/div/div/div/form/div/div/div[6]/div/input 472 301
**Output**:
ElementNotInteractableException:消息:元素不可交互在此处输入图像描述
答: 暂无答案
评论