I have fill the the random account number in textbox.My code below
string AccountNumberStr = "******************";
personEditPage.FillBankAccount(AccountNumberStr);
Problem is for each time when i'm running the test i have to change the account number manually.There is any possiblity to replace using IBAN generator ?!
There is a pattern in generating the IBAN code for each country, such as:

So, you need to know how to generate BBAN first. So, all of these things makes your code more and more difficult.
But
I suggest you to use your slenium to get the value from this site. Since you already, lunch your selenium browser, it wouldn't be difficult for you to navigate to the url :
driver.navigate().to("https://www.generateiban.com/test-iban/");
string AccountNumberStr = driver.findElement(By.xpath("//*[@id="iban"]");
There is a drawback for it, because it makes your app slow, but it is short, and easy to understand
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With