Dynamic object gives error during test

Ask general questions here.
Posts: 22
Joined: Tue Aug 06, 2019 4:14 pm

Dynamic object gives error during test

Post by eldorado25 » Tue Apr 21, 2020 9:22 am

Hi all,

the application I work on has a lot of screens and a lot of forms that require filling out. So to do this I have created an automatic form filler which will use a foreach loop and go through each of the adapter types dillin gin information as it goes.

This has gone okay so far, but I have hit an issue where in which when a certain option is selected it will add 6 radiobuttons to the form, as soon as this happens the script errors out with: Object reference not set to an instance of an object.

As far as I can tell they are already on the page but they are hidden until this option is selected, they are also included in my foreach loop which only adds to my confusion..

I can give snapshots if necessary

Thanks in advance

User avatar
Posts: 373
Joined: Fri Jul 15, 2016 1:35 pm

Re: Dynamic object gives error during test

Post by Stub » Tue Apr 21, 2020 9:51 am

So your code references a null object? Was the null object one of those hidden radio buttons? Have you compared the snapshots before and after the radio buttons are made visible? Are they the same object, before and after?