protractor not working with Safari 11 - selenium

protractor version : 5.0.1
safari version : 11
Mac version : 10.13
selenium version : 3.0.1
Error message: safaridriver could not launch because it is not configured
I have enabled the safari driver using the command --enable but still it is not launching the browser
Any possible solutions for the issue ?

A lot of times, it's because the developer option to allow remote automation isn't clicked. In safari, you can access this by clicking 'preferences' -> advanced. At the bottom it says 'show Developer Menu in Menu Bar.' Click that. Then in the newly appeared develop tab click on 'Allow Remote Automate' towards the bottom of the list. If this doesn't run it, post your code and we can take a more thorough look.

Related

Unable to test against Safari using v1.18.0

I just updated to TestCafe v1.18.0 and I followed the upgrade guide. I am able to run tests against Chrome and Firefox, as the system correctly prompted me if I wanted to let TestCafe control these, but this is not happening for Safari, so I am unable to test against it. I don't see any way to manually add an entry in the Automation tab either.
Automation Tab entry for TestCafe Browser Tools
Edit: I managed to add it using the remote option for TestCafe and pasting the URL into Safari, but even after that, npx testcafe safari is unable to launch Safari. I'm using an M1 Mac and macOS Monterey 12.0.1
TestCafe 1.18.0 does have the Safari-related issue. It has already been fixed. Please update TestCafe to v1.18.1.

Safari says "No Extensions", can't add any extensions

Safari extension window says "No Extension". Can't add any extension as well. I am running macOS Mojave 10.14.5 (no beta).
Following did not help : Disable/Enable Extensions from Develop menu, restarting safari, restarting mac, removing ~/Library/Preferences/com.apple.Safari.SandboxBroker.plist
This might have happened after I installed a profile (.pkg file) to receive beta OS update. But I never installed the beta.
How do I add extensions to Safari ? Any help ?

Browserstack: Developer Tools for iPad?

I am using Browserstack to test some websites on the iPad. I just don't seem to get where the developer tools are within that emulator. Shouldn't there be Firebug Lite somewhere? Can someone point the dev tools out to me please?
Launch iOS simulator from BrowserStack.
Once loaded, from the OSX menu bar, click Help > Mac Help.
In the open window type "Safari" in the search box.
Click "Safari Overview".
Click "Open Safari for me".
From the Safari menu bar, click Develop > iOS Simulator > (the iOS tab you want to inspect)
Screenshot of debugging iOS inside BrowserStack
As I posted here, Browserstack now appears to support Dev Tools, but only on physical devices (those with a blue mobile icon, below).
You activate the dev tools by clicking the button in the toolbar:
In the iOS simulator you can click the 'bookmarks' button (of the device) and firebug lite is available from there. It does not seem to load on the iPhone 5 that I am testing currently but may work for someone else.
To open Safari for debugging a simulator, follow the instructions above. If Safari Overview is not available, look for a "Search the Web" link at the bottom of the window. This also opens Safari.

Add Button On Safari And Execute Shell Command On button Click

I want to run a shell command from Button on Safari Browser. I have successfully added the button on safari browser using Safari Extension Program. Using that button I'm able to open a website in new tab. basically I want to use that button to run a tool on mac.
I have developed an mac application and want to run this application from the button on that safari browser. For that I need to run a shell command from the button.
Please help me I'm new in mac development and safari extension. My first question is: Is it possible to run a application on mac from the button on safari browser ?
If its possible am I join in right direction to execute that application from shell command which is run on button click ?
Is there any other way to do the same ?
Please help me . Thanks in advance.
You can create a server in node.js script and insert the code in it to run the command( to run that tool). Now call this url from button that you have added in safari browser.
Not very sure but may be use full for you.

Appcelerator Apps don't work in Firefox and Chrome but work in IE

I have problem as following. I use a Titanium Studio, build: 3.1.1.201306112235 with SDK 3.1.1 GA (on Windows 7). When I try to run example app as "Mobile Web Preview in Browser", then I saw mobile app in my Firefox (version 21.0) but any actions associated with 'clicks' don't work. Furthermore when I try run the same app in Chrome I see the same behaviour. Only in Internet Explorer app works properly (version 10). Do you have idea why apps from Titanium don't work properly? If you would like to get some more logs just ask.
EDIT: I provide remote access, and reopen page by Firefox in the same version on my colleague's laptop. Then in here browser everything works well. So i have question which settings, on my browser can "freezing" titanium application. Javascript is running, so I don't have idea, what is bad in my configuration.
This sounds like you are making web service calls to a remote host, which violates the same-origin-policy built into recent versions of chrome.
Try opening up chrome with this policy disabled:
chrome.exe --disable-web-security