kybu / headless-selenium-for-win

Running Selenium driven browsers headlessly on Windows.
GNU General Public License v3.0
115 stars 20 forks source link

headless IEs in one VM #14

Open necsk opened 7 years ago

necsk commented 7 years ago

hey, kybu, First of all thank you for your code. while I am struggling with multi-IEs in one windows VM problem and I found your code. I googled a lot and found suggestion creating more VMs only.

I am using java8 and selenium3 with remote web driver located at windows7/8.1/10+IE11. I have put your headless selenium to the PATH, set up the selenium start args and its runs well. using the util.exe to check the desktops and I can switch to it to see the IE too. But I found one thing that if I DO NOT switch to the certain desktop, the selenium API (for example, CLICK or SENDKEYS etc) seems not work at all,although the selenium API such as navigate or findelement work well.

Am I missing something or can you give me some hint to let it work? OR is it just like what the selenium group's IE wiki says, the windows IE need focus and IE sucks and can not be solved?

clement-igonet commented 7 years ago

It looks like the behaviour I get when I switch to the new virtual desktop manually. My keyboard and mouse actions do not do anything. Maybe this could be fixed in the code ??? Maybe an other solution would be to rely on virtuawin. It has some ability to manage virtual desktops ad Windows from command-line (using messages, -msg option). However, it's difficult to specify the executable you want to manage.