try to fix selecting all text in Field components
This commit is contained in:
parent
a25056f21e
commit
87be5fb938
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ module.exports = class RiotSession {
|
||||||
async replaceInputText(input, text) {
|
async replaceInputText(input, text) {
|
||||||
// click 3 times to select all text
|
// click 3 times to select all text
|
||||||
await input.click({clickCount: 3});
|
await input.click({clickCount: 3});
|
||||||
|
// waiting here solves not having selected all the text by the 3x click above,
|
||||||
|
// presumably because of the Field label animation.
|
||||||
|
await this.delay(300);
|
||||||
// then remove it with backspace
|
// then remove it with backspace
|
||||||
await input.press('Backspace');
|
await input.press('Backspace');
|
||||||
// and type the new text
|
// and type the new text
|
||||||
|
|
Loading…
Reference in a new issue