开发者

firefoxProfileTemplate doesn't prevent certificate prompt in Mozilla

开发者 https://www.devze.com 2023-03-18 17:19 出处:网络
I am running Selenium Server.I\'m also launching an automated test script that I exported from the Mozilla Selenium IDE and exported to my Java client driver program which I compiled and ran in Eclips

I am running Selenium Server. I'm also launching an automated test script that I exported from the Mozilla Selenium IDE and exported to my Java client driver program which I compiled and ran in Eclipse using JUnit 4.8. Two windows start up in Mozilla (since I'm using the "*chrome"/Firefox argument when instantiating my browser window object from the Java program). One window looks like it contains logging information of some kind, and the other window is the actual automated test browser window.

Here's how I'm starting the Selenium Server.

cd C:\Program Files\Java\jdk1.6.0_26\bin\Selenium

java -jar .\selenium-server-standalone-2.0rc3.jar -interactive -firefoxProfileTemplate "C:\Users[Windows-Login]\AppData\Local\Mozilla\Firefox\Profiles\lcllklng.default"

The server starts up fine. The reason I put the -firefoxProfileTemplate attribute into the start-up command because I kept getting the untrusted certificate in Mozilla. I guess this is supposed to default my Windows login Mozilla profile. However, it didn't work. I have to click through the prompts each time I run my test cases. Is there a way to make it avoid the untrusted certificate? Could it be because I'm running Windows 7?

You'd also be my hero开发者_开发知识库 if you can help me avoid this for IE, Google Chrome and Safari. But only if you feel helpful today. Thanks!


Switch to WebDriver to avoid this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号