Forum Discussion
shankar_r
9 years agoCommunity Hero
Hi
From Smartbear document
Item Property (Browsers Objects)
Specifies the browser instance you want to get. A browser can be specified via built-in constant, by the process name or by index within the collection:
Browsers.Item(btIExplorer).Run()
Browsers.Item("firefox").Run()
Browsers.Item(0).Run()
Browsers.Item("firefox").Run()
Browsers.Item(0).Run()
When specifying a browser via constant, the following values are acceptable:
Constant | Value | Description |
---|---|---|
btIExplorer |
-1 | Microsoft Internet Explorer. |
btFirefox |
-2 | Mozilla Firefox. |
btChrome |
-3 | Google Chrome. |
btEdge |
-6 | Microsoft Edge. |
btIExplorer is const of Test Complete, you can't use it as String value.
btIExplorer is equal to -1 If you want use btIExplorer the you can use -1 instead, sameway for other browsers as mentioned above.
In CSV file , Browsername is 14th col (btFirefox), so i used Driver.value(14).
In CSV file , Browsername is 14th col (-2), so i used Driver.value(14).
Hope you already know if you want to enter -1 in your excel files then you need add ' in-front:)