Our application has a functionality to auto-fill the Shipping Address and Billing Address based on the Initial Entry in the Address field by User. I was searching this forum and found out there isn’t much success in terms of handlign that Autofill. If I am wrong here please help me in figuring out how to handle that AutoFill. Here is my detailed requirement about that autofill and how I am planning to use that.
Once the user is on the Checkout page where they are supposed to enter there Shipping address and on Address Feild when they start typing there address Google throws some suggestions. I want to select the select the first given suggestion.
On the address field Step, the script will add a random number between 1 to 9999 and based on that number Google autofill will throw suggestions. I would like to select the 1st entry in suggestion.
This would make my test cases more dynamic in terms of test data. Currently, I am just pushing one single address in every test case.