Forum Discussion
samirc23
12 years agoContributor
Hi Gena,
It may sounds little funny but following script was working fine till now (scenario 1), but now it’s giving me error “'DDT.CurrentDriver' is null or not an object”. I would really appreciate if you can please let me know where I’m making mistake and send me solution to it please. In scenario 2 I have also tried same way you mentioned in your comment but having same error and funny part is that it also same sometime it works and sometime error “'DDT.CurrentDriver' is null or not an object”.
Scenario 1)
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"));
}
Scenario 2)
function loginfunction()
{
{
var mycsv;
mycsv = DDT.CSVDriver("C:\\foldername\\filename.txt");
mycsv.DriveMethod("Unit1.search");
}
}
function search ()
{
UserName.keys(DDT.CurrentDriver.Value("username"));
Password.keys(DDT.CurrentDriver.Value("password"));
}
It may sounds little funny but following script was working fine till now (scenario 1), but now it’s giving me error “'DDT.CurrentDriver' is null or not an object”. I would really appreciate if you can please let me know where I’m making mistake and send me solution to it please. In scenario 2 I have also tried same way you mentioned in your comment but having same error and funny part is that it also same sometime it works and sometime error “'DDT.CurrentDriver' is null or not an object”.
Scenario 1)
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"));
}
Scenario 2)
function loginfunction()
{
{
var mycsv;
mycsv = DDT.CSVDriver("C:\\foldername\\filename.txt");
mycsv.DriveMethod("Unit1.search");
}
}
function search ()
{
UserName.keys(DDT.CurrentDriver.Value("username"));
Password.keys(DDT.CurrentDriver.Value("password"));
}
Related Content
- 11 years ago
Recent Discussions
- 2 days ago
- 8 days ago
- 11 days ago