Selenium无法启动IE。
Selenium无法启动IESelenium无法启动IE。,selenium,selenium-rc,selenium-webdriver,selenium-ide,selenium-grid,Selenium,Selenium Rc,Selenium Webdriver,Selenium Ide,Selenium Grid,Selenium无法启动IE 10:56:25005 INFO[org.openqa.selenium.server.SeleniumDriverResourceHandler]命令请求:getNewBrowserSession[*iexploreproxy,http://192.168.132.105:8080/,]在会话上为空 10:56:25005信息[org.openqa.selenium.server.BrowserSessionFactory]创建新的远程会话 10:56:25005
10:56:25005 INFO[org.openqa.selenium.server.SeleniumDriverResourceHandler]命令请求:getNewBrowserSession[*iexploreproxy,http://192.168.132.105:8080/,]在会话上为空
10:56:25005信息[org.openqa.selenium.server.BrowserSessionFactory]创建新的远程会话
10:56:25005信息[org.openqa.selenium.server.BrowserSessionFactory]为分配了会话9fa93fe865904e3da895c91a86ebdcb0http://192.168.132.105:8080/,推出。。。
10:56:25005信息[org.openqa.selenium.server.browserlaunchers.WindowsProxyManager]正在修改注册表设置。。。
10:56:25474信息[org.openqa.selenium.server.browserlaunchers.internetexplorerrcustomproxylauncher]启动Internet Explorer…
在
Internet Explorer…
之后,它不会响应。请帮助我解决此问题。如何启动集线器和节点
对于节点,这对我很有用:
java-jar selenium-server-standalone-2.20.0.jar-role-webdriver-hubhttp://192.168.1.248:4444/grid/register -浏览器browserName=“internet explorer”,版本=8.0,平台=WINDOWS-Dwebdriver.internetexplorer.driver=c:\Selenium\InternetExplorerDriver.exe
另外,确保所有区域的保护模式设置都相同。是否需要internet explorer驱动程序进行selenium网格测试?我可以在IE中运行我的测试,而不需要它(使用SeleniumWebDriver,Grid2),我一直在寻找浏览器语法。非常感谢您将其添加到“启动节点”中。
Lets consider Hub running on Machine-A whose IPAddress is = 192.168.10.10 default port no. 4444.
Lets Node running on Machine-B whose IPAddress is = 192.168.10.20.
Lets consider operating System on HUB and Node is installed on drive C:\ (C-Drive).
create a folder named selenium on c:\ as c:\selenium.
keep binaries of IExplorer.exe, chromeDriver.exe and Selenium-Standalone-server2.10.0.jar. (on both machine A and B).
configuring HUB on Machine-A
1- open Command prompt
2- go to folder selenium using
i type cd\ then enter
ii type c: then enter
iii c:> cd selenium then enter
3- java -jar selenium-server-standalone-2.20.0.jar -role hub
Configuring NOde on Machine - B
1- open Command prompt
2- go to folder selenium using
i type cd\ then enter
ii type c: then enter
iii c:> cd selenium then enter
3- java -jar selenium-server-standalone-2.20.0.jar -role node -hub http://192.168.10.10:4444/grid/register -port 5560 -browser browserName=internt explore,maxInstance=4,version=10,platform=WINDOWS -Dwebdriver.ie.driver=c:\selenium\IEDriver.exe
your node will get register with Hub on port 5560.
Test Case will become as-
package testCase;
import static org.junit.Assert.*;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class Avinash_Internet_Explore
{
WebDriver driver;
String baseUrl , nodeUrl;
@Before
public void setUp() throws Exception
{
nodeUrl = "http://192.168.10.20:5560/wd/hub"; //Machine-A IPAdress
with Port No.
DesiredCapabilities capability = DesiredCapabilities.internetExplorer();
driver = new RemoteWebDriver(new URL(nodeUrl),capability);
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(2, TimeUnit.MINUTES);
}
@After
public void tearDown() throws Exception
{
driver.quit();
}
@Test
public void test() throws InterruptedException
{
driver.get("https://www.google.co.in");
Thread.sleep(3000);
driver.findElement(By.linkText("Gmail")).click();
Thread.sleep(3000);
driver.findElement(By.id("Email")).sendKeys("aavinashpande@gmail.com");
driver.findElement(By.id("Passwd")).sendKeys("********");
driver.findElement(By.id("signIn")).click();
Thread.sleep(6000);
}
}