DDT.DriverByName Property

Applies to TestComplete 15.59, last modified on November 30, 2023


Use the DriverByName property to obtain the DDTDriver object, whose Name property is equal to the string specified by the Name parameter. The property allows you to avoid using global variables to store references to the driver in a case when the driver creation and data processing code are located in different script routines (see Using DDT Drivers).



Read-Only Property A DDTDriver object
Name [in]    Required    String    

Applies To

The property is applied to the following object:


The property has the following parameter:


Specifies the value of the Name property of the desired driver.

Property Value

A DDTDriver object that provides a scripting interface to the specified driver object.


If you use Python or DelphiScript, you should enclose the parameter of the DDT,DriverByName property in square brackets: DDT,DriverByName[Name].


For an example that demonstrates how the DriverByName property is used, see Using DDT Drivers.

See Also

Using DDT Drivers
DDTDriver Object
CurrentDriver Property
Name Property
Data-Driven Testing
Using Scripts for Data-Driven Testing

Highlight search results