-
Notifications
You must be signed in to change notification settings - Fork 53
Criação Ambiente RemoteWeb
juliancesar edited this page Nov 17, 2014
·
13 revisions
Servidor selenium: http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar
Requisitos para execução do Servidor:
- interface gráfica
- navegador (Firefox, Chrome e Internet Explorer) instalados na máquina
- JDK
Driver Chrome: http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux32.zip
Driver Chrome: http://chromedriver.storage.googleapis.com/2.9/chromedriver_win32.zip
Driver Internet Explorer: http://selenium-release.storage.googleapis.com/2.43/IEDriverServer_Win32_2.43.0.zip
Comando de prompt do Windows/Linux utilizado para iniciar o Selenium Server Standalone:
java -Dwebdriver.chrome.driver=C:\CAMINHO\chromedriver.exe -Dwebdriver.ie.driver=C:\CAMINHO\IEDriverServer.exe -jar C:\Drivers\selenium-server-standalone-2.43.1.jar
No Linux não é necessário passar o parâmetro webdriver.ie.driver.
Alteração do arquivo behave.properties.
behave.runner.screen.type=RemoteWeb
behave.runner.screen.remote.name=chrome
behave.runner.screen.remote.url=http://localhost:4444/wd/hub
Seguir os seguintes passos:
- Todas as zonas devem estar no minimo possível de segurança
- "Enable Protected Mode" deve ser LIGADO para todas os tipos de zona.
- You will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. * Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.
- Reiniciar a máquina para efetivar as alterações