TestCafe BrowserStack - testing

I use the TestCafe module "testcafe-browser-provider-browserstack". It works well with the Browser and the OS. But how to use the module with iOS devices? I tried
browserstack:Safari:iPad Pro 12.9 2018
But the message is that the browser was not found.
The common usage for desktop is
browserstack:Safari:OS X Sierra
Anyone can help me how to use it with iOS and Devices?

You can get the list of all browsers available for testing by using testcafe -b browserstack.
For example, I have these ones:
"browserstack:iPad#3.2"
"browserstack:iPad 2#4.3.2"
"browserstack:iPad 2 (5.0)#5.0"
Thus, you can choose any available browser from the list.
I didn't find the browserstack:Safari:iPad Pro 12.9 2018 option in the list, but I found "browserstack:iPad Pro 12.9 2018#12.1".
Probably, you do not need to clarify that you want to use the Safari browser.

Related

Logging into macos from linux and exporting display

I'm running macos sierra and for some reason I can't get the following to work on sierra.
I want to ssh in to my macos machine from a linux desktop, export my display back, and run either chrome or safari on my linux display.
I have xquartz installed and sshd_config set up correctly. I successfully get a DISPLAY variable set which proves xauth is working, however, when I launch Chrome or Safari it is displayed on the macos desktop.
I've had this working on every version of macos until sierra.
Thanks for any help
You don't need to have xquartz installed for this direction of X forwarding. What you need however are applications that use the X protocol for displaying themselves. Your Mac's Chrome or Safari do not use it.
Mac does not use X server, and has its own API for dealing with windows and rendering on screen. Most applications you have installed (including Chrome and Safari) are using this API and know nothing about X11 and will ignore the DISPLAY variable. Only some special applications (typically those ported from Linux) use X11 on Mac and those render using xqartz (for example xterm or inkscape). Those are the only applications for which you can use X forwarding from Mac to Linux.
I doubt there is a working build of Chrome/Chromium for Mac that uses X11 and I am certain there is not one of Safari. I would recommend using VNC to get remote desktop from Mac to Linux.

NW.js chrome.gcm. API doesn't work

I have chrome packaged app, and there I use GCM.
NW.js said that they will continue to support chrome APIs in this article, but I can't get a registration ID when using chrome.gcm.register.
Any news about this? Is this API still supported?
As mentioned in Transitioning from Chrome apps on Windows, Mac, and Linux, Chrome packaged and hosted apps will remain supported and maintained for the foreseeable future on Chrome OS only. It was stated further:
Chrome packaged and hosted apps will be discontinued on Windows, Mac, and Linux over the course of now and early 2018. For more information, refer to the August 2016 Chromium blog post.
For this concern, please try going through the given documentation above for the recommended migration options for packaged apps.
Solution is to use --enable-gcm flag in command line.
Example(OS X):
open -n -a nwjs --args --enable-gcm /path/to/app/

Where to set unsafe mode in Safari 10 to made java plugin access local file

I just updated my Safari from Safari 9 to safari 10 beta version.
My client is a java applet runs from a page. In Safari 9 and before version, it runs OK. But in Safari 10 beta, it fails.
I found that safari 10 blocks access to local files from Java applet.
So I think it is because the java plugin runs under safe mode.
But in Safari ->preferences->security->Plug-in Settings.
there is no unsafe mode option to check. there is only three option :Ask,Off,On.
So my client can not access local file in safe mode now.
My mac system is OS X El Capitan version 10.11.6
and Safari version is version 10.0
Is that possible to set Unsafe mode in Safari 10 beta version?
In safari 10 beta,safari->preferences->security->Plug-in Settings, Press option key on your keyboard and click the three option(Ask,Off,On), you can see additional options in addition to the Ask,Off,On. Un-check the "Run In Safe Mode" and it run the same as the unsafe mode in older version.
Hope this can help you.

CustomUserAgent does not work at Safari 7

I upgraded My MacBook Pro to OSX 10.9 hence my safari was upgraded to 7 with good expectation.
First thing I observed that Safari 7 does not take my CustomUserAgent from ~/Library/Preferences/com.apple.Safari.plist.
I stopped safari, made manually CustomUserAgent entry in ~/Library/Preferences/com.apple.Safari.plist and restarted safari again but Safari does not take CustomUserAgent and continued with Default value setting in Developer Menu. Same setting used to work with Safari 6.0.5/6.1.
Could you guys help me to figure out this issue?
Regards,
Anand Choubey
10.9 Preferences are cached. Please check below link for more details.
http://hints.macworld.com/article.php?story=20130908042828630
I suggest, modify Preferences should be done either use defaults command or
CFPreferencesSetValue in programming.
Preferences should not be modified through hand.
Regards,
Anand Choubey

Is the new IE9 a standalone browser

Anyone that has installed the new IE9 know if I can keep IE8 installed? I do a lot of web testing and don't want to update to IE9 if I loose IE8.
best way is to install a Virtual Machine
Per Microsoft:
If you are running Windows Vista or
Windows 7 on your computer, you can
install the Internet Explorer 9 Beta
to replace your existing version of
Internet Explorer. After you install
Internet Explorer 9, you can uninstall
it to restore the previously installed
version of Internet Explorer.
So no, it will overwrite IE8 (at least the Beta will. I suppose this is not guaranteed to be the same for the release version).
I use Virtual PC with images of the browsers I need to test, but also and more lately, IETester, http://www.my-debugbar.com/wiki/IETester/HomePage. It allows you to run multiple versions of IE side by side.
If you want to be able to play with the new features of IE9 without installing the entire browser (which will replace IE8) you can install the Platform Preview. The PP is stand-alone, includes the latest features and bug fixes and has been getting updated roughly every 8 weeks. You can get the latest Platform Preview at:
www.ietestdrive.com
FYI: the production IE 9 does not accurately reproduce IE 8. I've got a CSS issue I'm chasing down now because IE 9's IE 8 mode isn't the same as real IE 8.
If you are concerned with testing how your site looks in IE8/7, you can use the Developer Tools (press F12) to switch the Browser modes and Document modes so that IE9 interacts with the web server as a different user agent, and renders the HTML document according to the version rules.
http://msdn.microsoft.com/en-sg/ie/ff468705(en-us).aspx#_New_Dev_Tools
IE9 beta is released as a Windows update, so after installing it and playing around, you can remove it from Programs and Features -> Installed Updates, which will recover IE8.
hit f12 on ie9, it will pop up the debug console. In the menu there is a browser mode option where you can set the browser to display as ie8 and a bunch of other versions too.
Also, if you're mouse focus is on the console and you hit ctrl+r, it will clear your browser cache... This is a feature that all the other browser debuggers lack.. ability to quickly clear cache.... I'm rambling now.
The best way to see your site on old versions of IE is that:
If you have IE9+, open your current version of InternetExplorer, press F12, click on "Browser Mode" tab, then choose the version you want.
see screenshot here:
Works better than IE-tester, and easier than using virtual machine.