Simple browser launch and navigate - won't work

Somedude746Somedude746 NLMember
edited January 2017 in Xamarin.iOS

Sorry if this is the wrong forum, I'm pulling my hair out here. I'm on Mac OS 10.12, using Xamarin Studio. I'm not familiar with Mac or Xamarin, I'm very much used to Windows/Visual Studio. I'm trying to start setting up Web UI tests, I'll eventually be opening Chrome, Firefox, and IE, and doing clickthroughs in each.

My problem - I'm able to get the chrome browser to open, but there is not a valid url there, it just shows "data:/" - full code is pasted below... it's simple stuff, but I just can't get it to work, and the test is saying it passed, no errors in the log or anything I can see, with the exception of one notation in the output console

"Starting ChromeDriver (v2.9.248307) on port 51720
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0"

using System;
using System.IO;
using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Queries;
using OpenQA.Selenium;
using Selenium;

namespace Tests
{

public class Tests
    {
        private IWebDriver driver;

        public void TestCase()
        {
            driver = new OpenQA.Selenium.Chrome.ChromeDriver("/usr/local/bin");

            driver.Navigate().GoToUrl("http://google.com");
        }
    }
}

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Unfortunately I know nothing about Selenium. Maybe there is some setup that should be happening that isn't?

    Maybe try Safari / Firefox to see if they behave differently.

    Someone here might know about Selenium but it seems unlikely. You might need to find a more relevant forum to post to get assistance.

  • teornek_teornek_ USMember

    I'm having same trouble. Did you find a solution @Somedude746

Sign In or Register to comment.