Forum Discussion

EkremMese1's avatar
EkremMese1
Contributor
21 days ago
Solved

Item cannot be found in the collection corresponding to the requested name or ordinal

I created a test with scripting. Everything was working fine.  Then I decided to use a Data Driven Testing approach with an excel file.  My code started to give me the error in the caption.  ...
  • EkremMese1's avatar
    15 days ago

    Hello again, 

    I just find out that the issue is cause by not closing the driver in the methods that I called in my code. 

    DDT.CloseDriver(DDT.CurrentDriver.Name);

    This line solved issue for me.