خرید بک لینک

Vote count: 0

I've read all prior posts and tried all suggestions. I've verified the page is loading via taking a screenshot. It's there. I have a 30 second implicit wait in place, which PhantomJS waits for. I have a fully qualified URL. And i've tested the same simple code snippet below with ChromeDriver and it works by flipping to that driver. Any ideas?

    [TestMethod]
    public void TestMethod1()
    {
        var d = new PhantomJSDriver();
        //var d = new ChromeDriver();

        try
        {
            var s = "Google";
            d.Manage().Timeouts().ImplicitlyWait(System.TimeSpan.FromSeconds(30));
            d.Navigate().GoToUrl("http://www.google.com");

            var e = d.FindElement(By.Id("lst-ib"));
            e.SendKeys(s);
            e.Submit();

            Assert.AreEqual<string>(d.Title, s);

        }
        catch(Exception e)
        {
            d.Quit();
            throw e;
        }            
    }

PhantomJS Output Window

asked 55 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 8 آبان 1395 ساعت: 23:13

صفحه بندی