I have a test websocket server written in c++ with qt. It listens on 2 ports, one for ws and another one for wss. Whenever i try to test connection to ws it usually works (except on Win10 with IE11 and Edge). However, the wss connection cannot be opened from Firefox, IE11 nor Edge. It works just fine with Chrome and Opera. It even (sometimes) works with IE11 on Win 8.1 and Firefox. But it never works with IE11 or Edge on Windows 10. It also doesn't work on Ubuntu with Firefox. I am getting a response like: {"trusted":"true"}. In the WebSocket monitor i see "Disconnected code 1006".
What could be the reason for not working on some browsers, and how to find the exact cause? I have a valid ssl certificate on the server where i am testing. Furthermore, if i try the echo test at https://www.websocket.org/echo.html it works as well.
Thanks in advance.
It's a Qt bug and can be fixed by patching Qt: https://bugreports.qt.io/browse/QTBUG-57665
Related
I am trying to run functional tests with intern for Chrome and Firefox.
First, Chromedriver would not wait long enough for the page to load and element transitions to end and become visible, so I added sleep()'s in a few places and used pollUntil() to wait for the initial page load. None of this was necessary for Firefox.
I am able to run my tests on either Firefox, which all pass, or Chrome, which all pass half the time. But if I list both browsers in my Intern configuration, Chrome will fail all tests, the Chrome window will be frozen, and the chrome and chromedriver processes will remain running, detached from selenium webdriver process when I stop the webdriver from command line. The error I usually get from webdriver if I wait long enough is
Exception: timeout: Timed out receiving message from renderer: 600.000
I am running local selenium-server-standalone-2.45.0.jar and chromedriver v2.16 (Chrome v44, up to date) with Intern 3.0, on Windows7 64.
From what I've read, Chrome has issues with getting the active window, and when Firefox pops up, the Chrome processes are lost. I don't know if that would be an issue with the Firefox window or just other Chrome windows, though. Maybe it's bugging out when get() happens. Or just not loading all the way.
Is there anything I can do to run them together? Or will I have to run each browser separately until/if the chromedriver issues are taken care of? Any other suggestions? Thank you.
I have to test a aspx web application with IE10; my problem is that I have a Windows 2003 server machine.
Is there any way to simulate the behavior IE10 on this kind of machine ?
I tried IETester but it doesn't allow me to run IE10.
Can be assumed that IE10 behaves similarly to some Chrome version ?
Can you please give me a hint
Thanks a lot
Marco
You could install IE10 in any other client, and test, rather than installing the browser in the server directly.
Alternatively, if you want to test for different versions of IE, you could check out Browserstack
I developed my test automation using IEDriverServer 2.25.0 and C# on my machine running XP, and IE7. Everything works fine. I created a setup package of my solution and deployed into another machine (Windows7, IE8), and the webdriver cannot find the elements on my tested webpage.
I installed Visual Studio and C# in another XP, IE7 machine. When I run the code, it has the same problem as in the Windows7 machine.
I tried to set the protection mode to on/off on all zones, but it does not work either.
I'm wondering if there is any settings Firewall/Antivirus/etc... that is making the webdriver not able to find the web elements??
Thanks!
I found the problem. My test machine should be in the same network as the webserver. The IP Address of my webserver is 10.104.200.110 with mask 255.255.255.0. Although my test machine can surf the webserver, it had a different IP address. So I changed the IP to 10.104.200.100 with mask 255.255.255.0 and it worked!
I had an issue with IE7, I mean I thought this is only IE7 issue since on IE6, IE8, IE9 the web page I have to test was working fine.
The web page has broken certificate (because this is R&D environment).
The soution was to add the page address to trusted sites.
I hope this helps someone, because I was looking everywhere and didn't find anything.
Now it seems obvious but nothing indicated that the problem was because of that, google page was working ok but the page I should test did not.
I just changed from a linux/apache2.0/php4 web server to a windows/iis7/php5 web server (I only post php versions since that was a significant change).
My css is working just fine on the linux one (http://66.119.8.165/flcunderconstruction.php) but it isn't working on the windows one (http://66.119.8.236/flcunderconstruction.php).
Now, the issue only seems to be applicable to internet explorer 8 (maybe older, but I'm not testing those). Firefox and internet explorer 9 work just fine.
I think I've ruled out php issues as I created a non-php version (http://66.119.8.236/flcunderconstruction.html) and the issue persists.
I'm assuming the problem is in the css (which is quite large and throws up a lot of validation errors). But since it only occurs on the windows server and with ie8, I'm hesitant to start whacking away at the code.
Any ideas?
JJ
The broken version stops loading when it hits /include/html5.js. You only see this on IE8 because later versions handle the HTML5 stuff just fine without the polyfill.
Missing: http://66.119.8.236/include/html5.js
Present: http://66.119.8.165/include/html5.js
To test this, press F12 to open up the Developer Tools. Switch your Browser Mode to IE8. Jump over to your Network tab and press "Start Capturing". Perform a hard refresh (CTRL+F5), and watch as the files begin loading in. You'll note the 404 when it gets to the HTML5 polyfill. (Image below)
Using Fiddler2, I set up and Auto Responder to automatically add the HTML5 file from my local machine in the place of your missing file. Refreshing the request resulted in the entire site loading as expected in IE8. Put your polyfill on the other server, and you should be set.
I have currently found a way to place the currently installation of Internet Explorer into kiosk mode using asp.net and VB
System.Diagnostics.Process.Start("iexplore", "-k " & "http://www.google.co.uk")
the "-k" parameter is the command that puts the browser into kiosk mode, however, other browsers such as chrome will only put the new instance of the page into another tab and firefox just opens the browser without loading the window.
I need to know what commands to pass so that chrome and firefox will respond in the same way as IE.
Many thanks
Chrome browser can do KIOSK mode with this command.
chrome.exe --chrome-frame -kiosk "your web page".
The good thing with Chrome is that you can build apps that can use the webkit animation and they look great for a KIOSK type applications.
It sounds like you might be interested in Windows Steady State, it's discontinued and doesn't run on win 7, but if you have XP or vista, it will let you lock down the PC nice and tight. This way you can restrict the use of programs to browsers you want (if you can't lock down chrome and ff) and on a reboot, it will clear any changes to the PC, basically returning you to a clean state status
Read more here: http://en.wikipedia.org/wiki/Windows_SteadyState