I want to perform Selenium tests with Internet Explorer browser. But screenshots from IE 11 are just black screens and my tests failed. Is it possible to use CircleCI for this purpose? The job description is below.
win-automation-test:
executor:
name: win/default
steps:
- checkout
- run:
command: |
choco install jdk8
choco install jre8
choco install maven
choco install ie9
choco install googlechrome --version 78.0.3904.97
choco install selenium-ie-driver --version 3.150.1
- run:
command: |
cd automation\UISeleniumTests
$registryPath=“HKLM:\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE”
New-Item -Path $registryPath -Force
New-ItemProperty -Path $registryPath -Name “iexplore.exe” -Value “0” -PropertyType “DWORD”
New-ItemProperty -Name “Isolation” -Path “HKCU:\Software\Microsoft\Internet Explorer\Main” -Value “PMIL” -PropertyType String
$AdminKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”
$UserKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”
Set-ItemProperty -Path $AdminKey -Name “IsInstalled” -Value 0
Set-ItemProperty -Path $UserKey -Name “IsInstalled” -Value 0
mvn verify -DuseIE=true
$LASTEXITCODE=“0”
- store_artifacts:
path: UISeleniumTests/target/site/
destination: tests
Hi there!
I’m experiencing the same issue: the black screen and failures…
Did you manage to find any solutions?
Thanks!
Hey @TatyanaM! Does this guide help? I realize there may be some differences in a Windows setup, but the more details we have, the better!
1 Like
Hi @thekatertot and thanks for the quick response. Yes, I followed it as well as https://circleci.com/docs/2.0/hello-world-windows/. I can provide more details if needed.
It looks like there are known issues with Internet Explorer + Selenium causing the black screens. I don’t know for sure, but maybe if we can resolve that first, we can better troubleshoot the failing builds.
Are your tests triggered by CircleCI right now?
1 Like
Yes, they are. Unfortunately, I cannot run them on my machine (Mac OS) to double check. But the same tests run successfully on CircleCI in Chrome/Firefox/Safari using circleci/node:10.19.0-browsers
Here is my ie workflow:
win-test:
executor: win/default
steps:
- checkout
- run:
name: Install all updates
command: npm install
- run:
name: Install cross-env
command: npm install -g cross-env
shell: cmd.exe
- run:
name: Try one ie test
command: cross-env NODE_ENV=staging SELENIUM_BROWSER=ie npm run ieTest
1 Like
Thanks for your patience. I did some research, and it seems like it is the Internet Explorer/Selenium issue that is the main problem. Unfortunately, there’s not a lot we can do to solve that as it seems like an overall limitation of Internet Explorer, but I can link you to some threads I found on that particular problem.
A thread on the IE/Selenium issue
A StackOverflow thread on the IE/Selenium issue
I’m sorry we can’t do more for this!