Setting user-agent in browsers with testcafe - google-chrome

My e2e UI tests require setting specific user-agent in browsers. It is not a problem in Chrome, because I can use Chrome emulation like 'chrome:emulation:userAgent=...' but I can't do it with Firefox, Safari, etc.
Does anyone have any idea how to do this?

Unfortunately, this feature is available only in Chrome.

use requestHooks to modify the header request see the link below
https://devexpress.github.io/testcafe/documentation/test-api/intercepting-http-requests/creating-a-custom-http-request-hook.html#the-onresponse-method

Related

github pages (.github.io) not loading in Firefox and chrome web browsers

I have noticed that github's page (websites with the ".github.io" url extension) doesn't load on Firefox and Chrome web browsers, except Opera. Both on mobile an desktop.
I have tried diffrent website URLs:
xeroxism.github.io
praisearts.github.io
drivenotepad.github.io
On chrome and firefox:
2
But on Opera:
2
pleaseeee Help would be highly appreciated. Thanks.
Try to update your browsers and check if proxies are working perfectly.
Try to clean catches.
I have used opera, safari, chrome, internet explorer, Microsoft edge, Firefox and some other browsers on Linux, Windows and Mac OS. But I didn't find such problem even I have explored Github Pages on these browsers.
Probably, The problems may be with proxy or some network settings. Check your firewall as well. If these solutions don't work, try to update your Operating System.
Thank You
try to clear your cache browser
this can fix
open cmd
ipconfig/flusdns
ipconfig/release
ipconfig/renew
restart your pc
restart your router/wifi hub/etc......
enter your desired site

ngAria support for Safari Browser

I have added ngAria in my code base and it works well in Chrome browser. But, It didn't work in Safari Browser. Is there anything I should code specific to Safari browser for keyboard accessibility to work.
Thanks,
Ramesh
Got a solution for this. I checked System preferences of my machine and made changes to them as mentioned in this http://www.weba11y.com/blog/2014/07/07/keyboard-navigation-in-mac-browsers/

Need Solution for browser compatibility issue

Our application is running fine in chrome browser. But in Firefox some features and screens are not working properly. So it needs to be fixed .How can i do that and what could be the solution for that?
The best way to find out what is 'going on' is to debug the code in the browser.
Firefox has a built in debugger but i prefer to use a third party debugger called Firebug.
You should give Firebug a try as indicated in the first answer. However as far as I know you had to install it as Add-on, it is not included in the distribution.
I think your question is a little too general. Anyway, if the compatibility issue is about CSS style, you should check whether you are using WebKit-prefixed CSS only. For example, if you are using -webkit-animation, it would only work in Chrome and Safari. Actually you should set four CSS styles: -webkit-animation, -moz-animation, -o-animation and animation to make your code work in major browsers. There are some documents about Mozilla and WebKit CSS that might help:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Mozilla_Extensions
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Webkit_Extensions

Cufon not showing up in firefox and opera?

The cufon doesn't work in firefox and opera, but works fine in safari/IE and chrome.
http://www.pixocasa.com/video/
Any idea what might cause this?
Is the domain of your cufon source different to that of your site? Firefox has a a strict same origin policy that prevents loading of some things if they are on different domains

IS there an IE add on for html/css vaildation?

I am looking for a IE9 add on that will clearly show me any html and css validation errors without having to post my source to the w3c validator service.
I know this is possible in firefox (does anyone know what these extensions are called?), but I can't find any for IE.
When you say you dont want to post your source to w3c, if you mean you dont want to do it manually, you can use the F12 development tool in IE9, which posts and validates your source with a click.
If you dont want to send your source for some other reason, you can download the offline validator tidy from w3c.
Firebug in Firefox is also a great tool.
IE8 includes a "Developer Tools" feature, which does a lot of the same things as Firebug.
You can bring up the Developer Tools window by pressing F12.
I haven't installed the final version of IE9 yet, so I can't double check this still works, but I can't imagine any reason they would have removed it.
If that fails, you could try Firebug Lite. Although Firebug is a Firefox add-on, they do also supply a Lite version which is just a Javascript bookmarklet which can be run on any browser. It doesn't have as many features as the full Firebug, but it is handy for times when you don't have anything else. Get it from here: http://getfirebug.com/firebuglite
You can use Firebug Lite (http://getfirebug.com/firebuglite). The original Firebug was an add-on for firefox, but this version runs in all the major browsers and should give you the kind of debugging features you are looking for.