You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Type command is causing post-back and removing focus from textbox, if textbox already contains data.
.Net Textbox with autopostback=true (page is automatically submitted if the content of the textbox has changed and you are returned to the same page)
-->
To Reproduce
Detailed steps to reproduce the behavior:
Type command causes additional postback if textbox contains data.
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.clear().then(() => {
return element.sendKeys(2);
});
});
Both the element.clear and the element.sendKeys remove focus from the textbox. This will cause a post-back if the content of the textbox has changed. If this post-back fires element for the sendKeys will no longer be valid (different page)
Expected behavior
The generated code should be allowing the element to be relocated in case of a post-back
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.clear();
});
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.sendKeys(2);
});
Test script or set of commands reproducing this issue
🐛 Bug Report
Using Type command is causing post-back and removing focus from textbox, if textbox already contains data.
.Net Textbox with autopostback=true (page is automatically submitted if the content of the textbox has changed and you are returned to the same page)
-->
To Reproduce
Detailed steps to reproduce the behavior:
Type command causes additional postback if textbox contains data.
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.clear().then(() => {
return element.sendKeys(2);
});
});
Both the element.clear and the element.sendKeys remove focus from the textbox. This will cause a post-back if the content of the textbox has changed. If this post-back fires element for the sendKeys will no longer be valid (different page)
Expected behavior
The generated code should be allowing the element to be relocated in case of a post-back
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.clear();
});
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.sendKeys(2);
});
Test script or set of commands reproducing this issue
await driver.findElement(By.css(.sid-fd2_Q_2)).then(element => {
return element.clear().then(() => {
return element.sendKeys(2);
});
});
Environment
OS:
Browser:
Browser version:
Browser Driver version:
Language Bindings version:
The text was updated successfully, but these errors were encountered: