Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

SafariLauncher does not work with Safari 5 #573

Closed
lukeis opened this issue Mar 2, 2016 · 67 comments
Closed

SafariLauncher does not work with Safari 5 #573

lukeis opened this issue Mar 2, 2016 · 67 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 573

What steps will reproduce the problem?
1. Upgrade from Safari 4 to Safari 5
2. Use *safari to launch a test that worked previously

What is the expected output? What do you see instead?

Expected behavior: Same as with Safari4 - start Safari and run the test
Instead both windows (selenium + test) are opened with Safari 5 but the second only
only opens <customprofile>/core/Blank.html?start=true and is never redirected to the
real page.

What version of the product are you using? On what operating system?
Selenium RC 1.0.3 / Windows


Reported by artur.signell on 2010-06-10 11:56:15

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Have you tried *safariproxy? I think the security model in Safari changed enough between
4 and 5 that our elevated permissions no longer work in *safari mode.

Reported by ericpallen on 2010-06-16 18:41:04

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Yes, using *safariproxy I can get Safari 5 to work.

Reported by artur.signell on 2010-06-23 11:02:55

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

With *safariproxy only the browser will launch. But all test still fail on site HTTPS
login. Can't doing any testing with the current RC and current browser version.
com.thoughtworks.selenium.SeleniumException: 

Result of expression 'currentHref' [undefined] is not an object.

    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
    at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:635)
    at test.Test_Suite_Parts_Compatibility.testFitment_eBay_Motors_Parts_Confirm_Parts_Compatability_Link_Displayed(Test_Suite_Parts_Compatibility.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



Reported by pwiner%auctiva.com@gtempaccount.com on 2010-06-23 16:59:15

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

We are aware of the situation and will work on this soon.

Good news is that Safari 5 on mac works, which means that it's not a huge architectural
change, but maybe just a windows flag/file location change.

We will work on this soon.

Reported by santiycr on 2010-06-24 16:56:24

  • Status changed: Accepted

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is there any updates on this ? I am also running into the same issues and get tons of

error(1279648033289): xmlHttp returned: 0:

eagerly waiting for the response or a workaround.

Reported by psjain on 2010-07-20 17:55:37

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I am seeing/getting the same issue with the latest safari (5.01) and selenium, is there
any update on this issue?


Thanks

Reported by dejibiobaku on 2010-09-07 19:08:40

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I am using Selenium Grid v1.0.8 (that comes with RC v1.0.3) for my tests on Safari 5
on OS X. When using *safariproxy, HTTPS pages fail with the same 'currentHref' [undefined]
error as above. Comment #4 says that Safari 5 on mac works. Could someone please confirm
that? Is there a fix being made for this?

Reported by raju.kamal on 2010-09-17 07:36:50

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hey all,

I want to confirm that on MAC OS selenium with Safari 5 is working, but I can not get
it to work on Windows as well, no matter is WIN7 or Vista :(

Waiting for a fix ASAP.

Thanks all,
George.

Reported by hernestag on 2010-09-27 14:10:13

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

FYI. It seems that uninstalling Safari 5 and re-installing Safari 4 doesn't seem to
resolve the issue. Anybody have a workaround for the time being?

Reported by kennsippell on 2010-09-29 04:27:37

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Interesting neither of my safari works with windows. I tried safari 3/4/5, none of them
work. any information or suggestions will be highly appreciated

Reported by jackiewlx on 2010-10-04 22:55:30

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

jackiewlx,

As I previously said, on windows it is not working no matter the Safari version.

Reported by hernestag on 2010-10-05 12:30:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I can confirm that selenium RC works with safari 5 , on windows 7 using the *safariproxy.
Initially did now work, but after I disabled the popup blocker from Safari (on by default)
works as expected. 

Reported by tompa.septimius on 2010-10-28 20:44:48

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I confirm as well Selenium RC 1.0.3 works ok with Safari 5 on Windows 7 using *safariproxy.

Reported by jpparsons on 2010-11-15 19:13:24

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

@guys that got success with Safari5 & Win7: what version of w7 do you use?

I am can not do anything with Proffecional but it workds from time to time on Ultimate.

could it be possible? any reasons/ideas/guesses?

Reported by zvasylvv on 2010-11-15 19:18:17

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Using *safariproxy, I can get the browser window to show up and fetch the base url.
That about it, most of my other actions after that (click, type) fail.

Reported by varun.mah on 2010-11-15 19:47:34

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I am running selenium rc with safari 4.0.4 on windows XP. It gets stuck while "launching
safari ..." after execution of selenium.start. It seems to work on some of my colleagues
machines. Could this be because I had installed safari 5 and later gone back to safari
4.0.4? Safari version 3 was working fine.

Reported by arunpr2000 on 2010-11-24 11:16:07

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

arunpr2000,

That sounds exactly like what I ran into. I had an installation of Safari 4 (4.0.5
to be precise), I got greedy and decided to install Safari 5 to see if it worked out
for me. When it didn't (stuck at 'Launching Safari...'), I un-installed it and went
back to 4. Turns out that now it was 4 getting stuck at that same point. Safari 3 doesn't
have that problem, but its not something that I would want to test against.

I tried this on XP and on 2008 Server.

Reported by varun.mah on 2010-11-24 13:35:33

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi Folks...

I am trying to run my tests on SeleniumRC 1.0.3 + Safari 5 + WindowsXP.
Getting the follwing error :
Result of expression 'currentHref' [undefined] is not an object.

Is the issue resolved ?  if yes,please provide the solution.

Can you confirm that selenium works on  Safari 5 with Mac ?

Thanks,
Amarnath


Reported by amarnath.rayudu on 2011-01-04 10:40:50

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I had little luck with Safari on Win 2008 Server myself.

I switched to a Mac (OS X 10.6.5), and with Safari 5.0.3, I could see all my tests
running with no problems.

Reported by varun.mah on 2011-01-04 13:19:06

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I had a luck with Win7Ultimate & Safari 5.0.x and no luck with Win7Proff & Safari 5.0.x.
Officially win7* is not supported :( 

Confirm that with macos x10.6.5 & Safari 5.0.x I was able to run tests via RC for couple
of times without any glitch

Reported by zvasylvv on 2011-01-04 13:25:31

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Thanks for the confirmation.
I will run my scripts on Mac now.

Reported by amarnath.rayudu on 2011-01-05 09:13:56

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by simon.m.stewart on 2011-01-21 15:21:37

  • Labels added: Browser-Safari, Component-RC

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I guess this is still unresolved? I just started with Selenium, and am very happy that
I've gotten IE and Firefox running my tests okay, but I'm having this particular problem
with Safari on Windows, and I don't have a Mac. I'm using Selenium RC 2.0b3 with Windows
XP and Safari 5.0.4.

Reported by karltinsly on 2011-04-07 13:56:49

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue still persist in 2.8.0

Reported by nickolay8 on 2011-10-09 10:07:47

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue still persists in 2.9.0

Reported by APailthorp on 2011-10-24 20:18:52

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Ref: https://saucelabs.com/jobs/5a2c7d358c6ab3fd37ad45245d665739

Seeing exception stack as follows:

com.thoughtworks.selenium.SeleniumException: Result of expression 'currentHref' [undefined]
is not an object.
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:671)
    at com.fabricww.testspike.Selenium1TestNg.test_CustomClick(Selenium1TestNg.java:142)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
    at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
    at org.testng.TestRunner.privateRun(TestRunner.java:757)
    at org.testng.TestRunner.run(TestRunner.java:608)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:36)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:165)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

Reported by APailthorp on 2011-10-24 20:22:05

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue still persists in 2.11.0

Reported by kishore.grandhi on 2011-11-01 19:16:19

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue still persists in 2.12

Reported by swarnam.m on 2011-11-11 08:25:18

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi,
  I am using 2.11.0 with Safari5.1 on windows xp. The issue is still persisting. Also
SafariProxy doesn't work for me . it gives below exception. Is there any link or something
which consolidate this problem.

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser
session: Browser not supported: *safariproxy

Supported browsers include:
  *firefox
  *mock
  *firefoxproxy
  *chrome
  *iexploreproxy
  *pifirefox
  *iexplore
  *firefox3
  *googlechrome
  *konqueror
  *firefox2
  *safari
  *piiexplore
  *firefoxchrome
  *opera
  *iehta
  *custom

    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:123)
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:128)
    at seleniumTests.OneTest.setUp(OneTest.java:25)
-------------------------------------

If i use *safari then it gives 'isNewPageLoaded found an old pageLoadError: TypeError:
'undefined' is not an object'
error.

Reported by yaminee.rajoria on 2011-11-21 07:47:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

win 7
safari 5.1.1
selenium-server-standalone-2.13.0.jar

i can launch safari using "safari" but the tests don't run and i got log - error(1321863611045):
xmlHttp returned: 0:

when using "safariproxy" i got below exception: 
org.openqa.selenium.WebDriverException: Could not start Selenium session: Failed to
start new browser session: Error while launching browser; duration or timeout: 2.94
seconds
Build info: version: '2.13.0', revision: '14794', time: '2011-11-18 17:49:47'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.6.0_29'
Driver info: driver.version: RemoteWebDriver

Reported by wguan.sh on 2011-11-21 08:24:07

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

It seems a major browser (Safari) is just not supported by the Selenium. And no reaction
from the dev team..

Reported by nickolay8 on 2011-11-21 09:02:29

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This does suck, but if one is not restricted to specifically needing to test Safari
5, the best workaround right now is to use Safari 4, at least that works with Selenium.
It doesn't cover all the compatibility needed for Safari 5 testing, but they are similar
enough to cover a significant portion.

Reported by mangaroo on 2011-11-21 16:38:28

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Apple fixed the security flaw used to get *safari working properly in Safari 5. *safariproxy
is the only one that has any chance of working now.

Reported by simonstewart@google.com on 2011-11-28 10:20:30

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi, 

We are interested in using Selenium but we are running into this issue with Safari
5.

Does anyone know if anyone is even working on solving this issue?  Any rough dates
or is it completely an unknown for now?

We need selenium to work with the following specifically:

Safari 5 on Mac OSX 10.6
Safari 5 on Mac OSX 10.7

Thanks!

Reported by edorsini on 2011-11-28 19:27:54

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Update: *safariproxy works for me on WinXP + Safari latest, using Selenium 2.12.0

Thanks a lot to the person who fixed it!

Reported by nickolay8 on 2011-12-07 19:13:21

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

@nickolay8@gmail.com

are your tests working on HTTPS pages?

I tried with sel version 2.12,safari 4.0.5.
But my tests are failing on HTTPS pages.

Thanks,
Swapnil

Reported by swapnil33mate on 2011-12-13 18:21:15

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

No, I'm testing on regular http pages.

Reported by nickolay8 on 2011-12-14 05:18:44

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Update: *safariproxy still does not work on native MacOS Snow Leopard 10.6.1

Here's the output from the server (after that it just stuck)

Dec 20, 2011 4:10:11 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
04:10:13.954 INFO - Java: Apple Inc. 14.1-b02-90
04:10:13.958 INFO - OS: Mac OS X 10.6 x86_64
04:10:14.043 INFO - v2.15.0, with Core v2.15.0. Built from revision 15105
04:10:14.044 INFO - Forcing http.proxyHost to '' to avoid infinite loop
04:10:14.421 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
04:10:14.429 INFO - Version Jetty/5.1.x
04:10:14.431 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
04:10:14.432 INFO - Started HttpContext[/selenium-server,/selenium-server]
04:10:14.433 INFO - Started HttpContext[/,/]
04:10:14.599 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@583e0ebb
04:10:14.600 INFO - Started HttpContext[/wd,/wd]
04:10:14.620 INFO - Started SocketListener on 0.0.0.0:4444
04:10:14.622 INFO - Started org.openqa.jetty.jetty.Server@31f26605
04:11:54.558 INFO - Checking Resource aliases
04:11:54.562 INFO - Command request: getNewBrowserSession[*firefoxproxy, http://local/workspace/JavaScript/siesta/t?selenium=true,
] on session null
04:11:54.569 INFO - creating new remote session
04:11:54.678 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException:
Firefox 3 could not be found in the path!
Please add the directory containing ''firefox-bin' or 'firefox'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3 /blah/blah/firefox-bin on session null
04:11:54.702 INFO - Command request: getNewBrowserSession[*iexploreproxy, http://local/workspace/JavaScript/siesta/t?selenium=true,
] on session null
04:11:54.703 INFO - creating new remote session
04:11:54.706 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException:
Internet Explorer could not be found in the path!
Please add the directory containing ''iexplore.exe'' to your PATH environment
variable, or explicitly specify a path to Internet Explorer like this:
*iexplore /blah/blah/iexplore.exe on session null
04:11:54.711 INFO - Command request: getNewBrowserSession[*safariproxy, http://local/workspace/JavaScript/siesta/t?selenium=true,
] on session null
04:11:54.712 INFO - creating new remote session
04:11:54.787 INFO - Allocated session 04699a5d2cc94295af7bc33d0cd2c267 for http://local/workspace/JavaScript/siesta/t?selenium=true,
launching...
04:11:54.790 WARN - It looks like your baseUrl (http://local/workspace/JavaScript/siesta/t?selenium=true)
is pointing to a file, not a directory (it doesn't end with a /).  We're going to have
to strip off the last part of the pathname.
04:11:56.646 INFO - Modifying OS X global network settings...
04:11:57.791 INFO - Launching Safari to visit 'http://local/selenium-server/core/RemoteRunner.html?sessionId=04699a5d2cc94295af7bc33d0cd2c267&multiWindow=true&baseUrl=http%3A%2F%2Flocal%2Fworkspace%2FJavaScript%2Fsiesta%2Ft%3Fselenium%3Dtrue&debugMode=false'
via '/var/folders/ai/aitAeBwLFP4BtJWacNpOYk+++TI/-Tmp-/customProfileDir04699a5d2cc94295af7bc33d0cd2c267/redirect_to_go_to_selenium.htm'...

Reported by nickolay8 on 2011-12-20 09:16:48

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Update: Same for MacOS 10.7 Lion

Reported by nickolay8 on 2011-12-22 07:53:47

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

More over, seems safari launcher on MacOS modifies the *global* proxy setting, not only
the proxy setting for browser.

Reported by nickolay8 on 2011-12-22 08:05:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

is there any chance this will be fixed in selenium 1.0.3? 

Reported by rizonable on 2011-12-27 02:12:30

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hello,

I'm attaching the cross-platform test case which demonstrates the problems with the
*safariproxy.

Steps to reproduce:
1) Unpack the archive
2) Copy the selenium-server-standalone-2.15.0.jar in the same folder
3) Launch the "./selenium"

1) It almost works on WinXP - Safari actually opens the google.com page, but then throws
an exception
2) It does not work in Win7 - Safari tries to open some broken URL
3) It does not work on MacOS - Safari tries to open some broken URL and it just stucks.

Hope that help.

Reported by nickolay8 on 2012-01-06 16:58:39


- _Attachment: [selenium.tar.gz](https://storage.googleapis.com/google-code-attachments/selenium/issue-573/comment-63/selenium.tar.gz)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I am using the latest selenium-server.jar. And i am running scripts in safari browser.
My scripts logs into the application and then it fails. The error message is below.

>Error 404 Not found
HTTP ERROR: 404
RequestURI=/selenium-server/core/pc
Powered by Jetty:

Any help regarding this would be greatly appreciated and because of this issue iam
stuck in completing my POC.

Thanks In Advance
kasturi.

Reported by kasturi.narra on 2012-01-12 08:47:35

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi All,

I am using selenium RC v2.15, my test scripts are running successfully on Windows 7
with Firefox 8, IE9, google chrome but its not running my scripts on 'Safari 5'.
when i start the server and run the scripts safari browser lannches with this page,
please find the attached screen shot.

HTTP Status 404 - /selenium-server/core/RemoteRunner.html

type Status report

message /selenium-server/core/RemoteRunner.html

description The requested resource (/selenium-server/core/RemoteRunner.html) is not
available.

JBossWeb/2.0.1.GA.



Please help me if any one can?

Reported by bushrazaheer86 on 2012-01-19 07:54:53


- _Attachment: screen shot of safari browser.png
![screen shot of safari browser.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-573/comment-65/screen shot of safari browser.png)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Sadly, there's no trivial way to address this problem. This started happening as Apple
decided to remove the security hole Selenium was using to drive Safari in a heightened
privileges mode.

The two alternatives available for anyone dealing with this problem are:
Drive Safari 5 using the "*safariproxy" identifier. That won't let you test multiple
domains, but will at least start safari and may work in your use case.
Move to Safari 4 or 3, which still have this security hole and for which "*safari"
will work. 

We'll be considering other alternatives for driving Safari with higher privileges in
the future and keep the community updated. Definitely let us know if you have any ideas.

Reported by santiycr on 2012-01-25 21:37:53

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

@santiycr *safariproxy doesn't work either! It was reported numerous times in this thread.
Please see my comment #63

Reported by nickolay8 on 2012-01-26 06:07:52

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi,

We have to check Safari 5 compability with selenium on Windows XP.
Which version of selenium can be used on Safari 5 ( windows XP)?

Please help us on this,.

Thanks!!!

Reported by padmini.swetha on 2012-03-16 12:26:35

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hello I am using    <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>2.12.0</version>

and trying to launch using 


        Selenium sel = new DefaultSelenium("localhost", 4444, "*safari", "http://www.google.com/");
        CommandExecutor executor = new SeleneseCommandExecutor(sel);
        DesiredCapabilities dc = new DesiredCapabilities();
        WebDriver browser = new RemoteWebDriver(executor, dc);


and i am getting this error  Could not start Selenium session: Failed to start new
browser session: java.lang.RuntimeException: Safari could not be found in the path!


please tell me is there any problem in implementation or i have to change any version
of selenium with WIn 7.

Reported by 241.aditi on 2012-03-29 17:34:10

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I have opened the source code of selenium for the class SeleneseCommandExecutor and
I found that in startCommand(Capabilities capabilities) method  if("safari".equals(browser))
{
String path = findSafari();
return (new StringBuilder("*safari ")).append(path).toString();
}

the run *safari has a space which is appended to path variable. Is this space matters
for this issue. We appreciate if this is fixed soon.

Reported by tulsi.tester on 2012-04-03 12:27:44

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I used *safariproxy on mac it works for me but not *safari
I did in MAc

Reported by jew@abctech-thailand.com on 2013-05-28 13:47:19

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:49:20

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant