Hi,I have created a sample test and 'm able to execute on Firefox browser successfully. I've updated the script to work on Chrome but getting some errors. Here are the details,import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.chrome.ChromeDriver;public class WebLoginTest {/*** @param args* @throws InterruptedException*/public static void main(String[] args) throws InterruptedException {try{System.setProperty("webdriver.chrome.driver", "C:/Program Files/chromedriver.exe");WebDriver TestDriver = new ChromeDriver();TestDriver.get("http://ariesstage.corproot.com/iw-integration/WVR"); //This is my internal siteTestDriver.findElement(By.name("user")).sendKeys("georgereid");TestDriver.findElement(By.name("password")).sendKeys("Test1234");TestDriver.findElement(By.className("formButton")).click();Thread.sleep(4000);TestDriver.findElement(By.partialLinkText("Log Out")).click();TestDriver.close();TestDriver.quit();}catch(Throwable t){System.out.println("Test Result: Fail\n");System.out.println("StackTrace: "+t.getStackTrace());}}}-----------------------------1. I have copied Chrome.exe at C:\Users\Userid\AppData\Local\Chrome\Application\2. Also copied Chromedriver.exe at C:\ProgramFiles\I'm getting below error while executing,"Could not load extension from 'C:\Users\C03049\AppData\Local\Temp\scoped_dir45`6_4977\internal'. Loading of unpacked extensions is disabled by the administrator.attached screenshot for info.Thanks,Naveen
Sounds like you have blacklisted extensions.
**Warning** DO NOT MODIFY ANYTHING IF YOU CHECK YOUR REGISTRY, if you do you could make your machine unusable.
To check to see if you have got any extensions blacklisted do the following:
· Press Windows Key + R
· Type “regedit” and click “OK”
· Navigate to “HKEY_CURRENT_USER\Software\Policies\Google\Chrome\ExtensionInstallBlacklist” and see if you are blocking extensions
· Navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallBlacklist” and see if you are blocking extensions
If either of the above keys are set in the registry it would imply that an administrator has configured your machine to refuse installation of chrome extensions. If this is the case the WebDriver extensions will not be able to be loaded into Chrome hence the error you are seeing.
The fix would be to talk to your IT team and find out why they have blacklisted chrome extensions, you will need them to enable them if you want to run Selenium tests.
More info about chrome blacklists is available here:
http://www.chromium.org/administrators/policy-list-3#ExtensionInstallBlacklist
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.