d5-testing-library 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -309,8 +309,15 @@ var SelectBoxEditor = class extends AbstractDXEditorWithInput {
|
|
|
309
309
|
await inputEl.click();
|
|
310
310
|
await inputEl.sendKeys(value, import_selenium_webdriver7.Key.ENTER);
|
|
311
311
|
const combinedValueXpath = XPathHelper.getRoleXpath(SELECT_BOX_ELEMENT_ROLE) + XPathHelper.getClassAndValueXpath(SELECT_BOX_OPTION_TEXT_CONTAINER_CLASS, value);
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
await this.driver.wait(async () => {
|
|
313
|
+
try {
|
|
314
|
+
const optElement = await inputEl.findElement(import_selenium_webdriver7.By.xpath(combinedValueXpath));
|
|
315
|
+
await optElement.click();
|
|
316
|
+
return true;
|
|
317
|
+
} catch (e) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
}, 2e3);
|
|
314
321
|
}
|
|
315
322
|
async getValue() {
|
|
316
323
|
const value = await super.getInputValue();
|
|
@@ -270,8 +270,15 @@ var SelectBoxEditor = class extends AbstractDXEditorWithInput {
|
|
|
270
270
|
await inputEl.click();
|
|
271
271
|
await inputEl.sendKeys(value, Key2.ENTER);
|
|
272
272
|
const combinedValueXpath = XPathHelper.getRoleXpath(SELECT_BOX_ELEMENT_ROLE) + XPathHelper.getClassAndValueXpath(SELECT_BOX_OPTION_TEXT_CONTAINER_CLASS, value);
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
await this.driver.wait(async () => {
|
|
274
|
+
try {
|
|
275
|
+
const optElement = await inputEl.findElement(By6.xpath(combinedValueXpath));
|
|
276
|
+
await optElement.click();
|
|
277
|
+
return true;
|
|
278
|
+
} catch (e) {
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
}, 2e3);
|
|
275
282
|
}
|
|
276
283
|
async getValue() {
|
|
277
284
|
const value = await super.getInputValue();
|
|
@@ -270,8 +270,15 @@ var SelectBoxEditor = class extends AbstractDXEditorWithInput {
|
|
|
270
270
|
await inputEl.click();
|
|
271
271
|
await inputEl.sendKeys(value, Key2.ENTER);
|
|
272
272
|
const combinedValueXpath = XPathHelper.getRoleXpath(SELECT_BOX_ELEMENT_ROLE) + XPathHelper.getClassAndValueXpath(SELECT_BOX_OPTION_TEXT_CONTAINER_CLASS, value);
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
await this.driver.wait(async () => {
|
|
274
|
+
try {
|
|
275
|
+
const optElement = await inputEl.findElement(By6.xpath(combinedValueXpath));
|
|
276
|
+
await optElement.click();
|
|
277
|
+
return true;
|
|
278
|
+
} catch (e) {
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
}, 2e3);
|
|
275
282
|
}
|
|
276
283
|
async getValue() {
|
|
277
284
|
const value = await super.getInputValue();
|