Hi All,
I wanted to test my website using webdriver(C#) on safari over Mac OSX
but seems it seems to be a distant dream.
First of all a very basic question, i.e. can we use Selenium 2 for
safari as I cant see any safaridriver for it? Many place its mentioned
that we can use chromedriver to test safari, but I could not find any
proper example. Can we set safari browser location and try through
chromedriver.
I tried experimenting around and could come up with following piece of
code. But here also I got an error that it cant resolve
SeleneseCommandExecuter. This class seems to be there for Java but not
for C#.
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Internal;
............
IWebDriver driver;
ICapabilities capabilities = new DesiredCapabilities("safari",
string.Empty, new Platform(PlatformType.MacOSX));
ICommandExecutor executor = new
SeleneseCommandExecutor("http:localhost:4444/", "http://
www.google.com/", capabilities);
driver = new RemoteWebDriver(executor, capabilities);
May some one kindly help me in figuring out error in above code or
helping me out in running test for safari on mac. Any help will really
mean a lot
Thanks
Anu