C
C#2w ago
Cryy

Selenium - change trigerring

Hey, I'm adding new tests in Selenium and I have an issue probably with change triggering. I have a form with a few fields. First input field is "Code" field that I'm putting some code from scanner or manually and after that it triggers change event that parse code to 4 anotyher fields and disable them. It works if i'm doing it manually, it works if I run my test in debug step by step but if I just run tests from Visual Studio (without debugging) it parses value but the fields are not disables and this cause another errors but gues it's not important. I tried to add Thread.Sleep or some kind of wait after the code is entered but that does not help. Code is entered like this
Globals.CurrentWebDriver.FindVisibleElement(By.Id("ScannerReceipt")).SendKeys(fmdCode);
Globals.CurrentWebDriver.FindVisibleElement(By.Id("ScannerReceipt")).SendKeys(Keys.Enter);
Globals.CurrentWebDriver.FindVisibleElement(By.Id("ScannerReceipt")).SendKeys(fmdCode);
Globals.CurrentWebDriver.FindVisibleElement(By.Id("ScannerReceipt")).SendKeys(Keys.Enter);
Any idea what's wrong ? Thank you
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server