Driver findelement not found

Viewed 14

This issue continues from this previous question - the webpage is an online calculator for mortgage insurance premiums. Here is what I have. In this scenario, I have two borrowers with credit scores. When I go into this particular screen, the Primary borrowers score is already form-filled in (This I believe is being driven from another screen I used near the beginning of the process.) But when I have two borrowers, I need to input the second score. When I go into "Inspect" mode, I do not see anything that will allow me to use information there. Plus, the coding for borrower #2 seems to be very similar to the coding for borrower #1.

Borrower #1 Coding FICO- <div class="text-center attr-row p-col-3 ng-pristine ng-valid ng-star-inserted ng-touched" style=""><input class="required ml-12 text-center ng-pristine ng-valid ui-inputtext ui-corner-all ui-state-default ui-widget ui-state-filled ng-touched" data-lpignore="true" formcontrolname="fico" maxlength="3" pinputtext="" pkeyfilter="int" required="" style="width:60px;height:24px;padding-top:0;padding-bottom:0" type="text" name="fico1"><!----><!----><!----><!----><!----></div>

Borrower #2 Coding FICO - <input class="required ml-12 text-center ng-pristine ng-invalid ui-inputtext ui-corner-all ui-state-default ui-widget ng-touched" data-lpignore="true" formcontrolname="fico" maxlength="3" pinputtext="" pkeyfilter="int" required="" style="width:60px;height:24px;padding-top:0;padding-bottom:0" type="text" name="fico2">

There error I get is is that there is no element by that name. I suspect that the score for Borrower #2 is driven by another field inside the program I use. But no one in my company can tell me where that field is.

This is the line of coding I am using that is causing me to get the error - driver.FindElementByName("fico2").SendKeys "790"

Any help would be appreciated. Sorry in advance if I am typing this incorrectly. Thanks. dave

0 Answers
Related