I am doing a Selenium with Docker PoC and I ran into a problem.
Tests that are opened in Docker open in the mobile view by default.
I did not find a way to force the webdriver to open the desktop version of the site.
Any tips would be helpful. I didnt find much on this topic on the web.
Thanks
Related
I've developed a framework which runs selenium tests with no problem on my local computer.
I also have developed a pipeline on Bamboo to execute those tests. It does, problem is I have no chrome browser installed on bamboo and I get the error saying "There is no chrome binary" obviously. There is no chance to install anything on bamboo, so I need to run these tests with no browser (also headless).
I've checked this: https://github.com/browserless/chrome
Sounds good to what I want to achieve but I don't know how to do it.
Do I need to run docker by command and then point my driver to the port or what?
Can anyone shed some light? I pretty lost and there are not much examples (or I don't know how to find them)
Thanks!!
I’m training at selenium and docker right now. For this I created a project by following this tutorial that explains how to set up a selenium grid with docker compose.
https://www.youtube.com/watch?v=NjQ5zZM7fpI
I also went to the docker-selenium repository and used the following yml file:
https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3.yml
The grid is correctly configured when I navigate to:
http://localhost:4444/ui/index.html#/
The 3 nodes appear in the hub. However I do not know how to get the ui of docker which is shown in the tutorial where we see the images of the containers.
Here's a screenshot:
I’m a little ashamed to ask this question but I looked for a moment and I discovered docker since this morning...
How do I get this interface ?
My configuration:
-Linux Ubuntu 20.04
-Google and chrome 95
-the last version selenium server : 4.1.1
-a docker account
Thanks
I have a bunch of containers running .Net Framework Apps on Windows Containers. Apps work great, containers work perfectly. I need to debug some code on one of the containers using VS2019 and according to this article it should be easy https://learn.microsoft.com/en-us/visualstudio/debugger/attach-to-process-running-in-docker-container?view=vs-2019
Unfortunately, I only see "Docker (Linux Container)". I do not see an option for "Docker (Windows Container)" and I don't see any additional steps needed in the articles or any other to enable this.
I can confirm that my Docker Desktop is switched to Windows Container and everything is working perfectly I just don't see this option but seems like I should be able to. Has anyone come across this and found a solution? I saw some stuff for installing a remote debugger on the container but again the article does not say this is a prerequisite. Any help will be much appreciated.
Thanks,
To anyone facing the same issue, the answer is to upgrade your visual studio 2019 instance to the latest. I noticed I was on 16.4.x. I upgraded to 16.8.3 and the options all appeared and worked as expected. Apparently the options for Windows containers and the new WSL 2 based engine are only available in 16.5.x and above. Hope this helps someone out.
I am looking for automation testing tools that compatible with Docker Image. Can you guys help me to find it out?
Thanks in advance!
You can try with spotify docker-client: https://github.com/spotify/docker-client
Almost all the testing tool nowadays have support for docker and already they have docker official images. You can try Selenium , Watir, Katalon etc for UI Automation. There are more automation tools for API testing that can be dockerized.
Basically you can dockerize any automation tool as per your need.
Currently selenium HQ/docker-for-selenium is available for Linux os.
Here they are trying to implement selenium grid using docker, on Linux.
My main aim is achieving the same in windows. I am unaware what challenges I will face here.
So creating this thread to discuss the challenge while implementation.
For windows to support the IE in docker we need to understand two things.
1)Windows do not provide GUI capability inside the docker containers like XVBF in Linux.
2) No headless IE
Feel Free to explore this project in order to understand how they are enabling GUI in Linux containers.
Link to the project: https://github.com/SeleniumHQ/docker-selenium
UPDATES:
Still there is no official approach to run IE/EDGE inside docker as
"No Windows docker images have GUI, so we cannot test IE11, EDGE."
But,We can install virtual-box and make this happen.
This approach adds extra layer of virtualization[Nesting of virtualization] on the top of docker to make the IE/Edge execution happen and I think in near future it may leads to to performance issue for heavy testing.
If Selenium testing is what you are looking for and don't have heavy load , you can give a try to the approach mentioned in the link.
Youtube - Selenium Windows containers in Docker under Linux
Github - Windows Images
Blogpost - selenium-on-windows-docker-revolution