输入框输入值后,点击回车键,输入的值自动清空
- Dominant language
- No language data
- Stars
- 3.2k
- Forks
- 418
- PR merge metrics
- No merged PRs in 30d
Description
it('感染上报_2_3 输入正确住院病案号', function () {
return driver
//输入住院病案号
.elementById('inpNo')
.sendKeys('984104')
.sleep(2000)
.sendKeys('\r')
//验证
//获取病人姓名
.elementByXPathOrNull('//*[@id="point"]/div[1]/div[2]/div[1]/div[4]/a')
//*[@id="point"]/div[1]/div[2]/div[1]/div[4]/a
// .getProperty('href')
.text()
.then(fos => {
console.log('界面上患者姓名:', fos);
})
})
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the `感染上报_2_3 输入正确住院病案号` test and its `inpNo` field interaction, including the Enter key and patient-name XPath lookup. Reproduce the reported clearing behavior and verify that the entered value remains available after Enter while the patient-name lookup still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100