Is it possible to run Scripts in IE without using System.setProperty("webdriver.ie.driver", "path")

55 views
Skip to first unread message

Phanindra Chowdary Chunduri

unread,
Sep 4, 2014, 11:23:17 PM9/4/14
to seleniu...@googlegroups.com
Hi All,

We are taking over automation from another company and they are not ready to share all the details.

I have gone through the code. there is no System.setProperty("webdriver.ie.driver", "path") statement in their code.

I think they are using environment variables.

I have set path to IEDriverServer in "Path" variable and ran the script. I still got error message like webdriver.ie.driver has to be set.

I created a System variable "webdriver.ie.driver". Still I am not able to get their scripts work.

How can we execute scripts in IE without System.setProperty("webdriver.ie.driver", "path") .



Ripon Al Wasim

unread,
Sep 5, 2014, 12:48:34 AM9/5/14
to seleniu...@googlegroups.com
You can add the line of code in existing code:

System.setProperty("webdriver.ie.driver", "path");


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7aa4332c-af09-41ff-a9e8-9ea9e1491081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Phanindra Chowdary Chunduri

unread,
Sep 5, 2014, 5:33:11 AM9/5/14
to seleniu...@googlegroups.com
Hi Ripol,

Scripts are already executing in different machines. I opened that machine and I saw them.

All they did was added IEDriverServer to Path variable. Apart from that they aren't doing anything.

Without using System.setProperty("webdriver.ie.driver", "path") , scripts are executing and I am not able to figure out how they are executing.

Can any one help me out please.

Thanks,
Phanindra.

Madan Singh

unread,
Sep 5, 2014, 6:11:28 AM9/5/14
to seleniu...@googlegroups.com
Hi  Phanindra,
you can try like I used in C# code you change as per language
InternetExplorerDriver driver;
driver = new InternetExplorerDriver(@"D:\\Test\\PathFolderWhereyouhaveIEDriverServer.exe\");



For more options, visit https://groups.google.com/d/optout.



--
M P Singh
9971360313
Reply all
Reply to author
Forward
0 new messages