samirc23
12 years agoContributor
error - 'DDT.CurrentDriver' is null or not an object (jscripting)
Hi,
while doing data driven testing i get following message.
'DDT.CurrentDriver' is null or not an objec.
function loginfunction()
{
DDT.CSVDriver("C:\foldername\filename.txt");
}
{
DDT.CurrentDriver.DriveMethod("Unit1.search");
}
function search ()
{
UserName.keys(DDT.CurrentDriver.Value("username"));
Password.keys(DDT.CurrentDriver.Value("password"));
}
Please let me know what could be posible solution to this issue.
Many Thanks,
Sam
while doing data driven testing i get following message.
'DDT.CurrentDriver' is null or not an objec.
function loginfunction()
{
DDT.CSVDriver("C:\foldername\filename.txt");
}
{
DDT.CurrentDriver.DriveMethod("Unit1.search");
}
function search ()
{
UserName.keys(DDT.CurrentDriver.Value("username"));
Password.keys(DDT.CurrentDriver.Value("password"));
}
Please let me know what could be posible solution to this issue.
Many Thanks,
Sam