Tag Info

New answers tagged

0

Process.Start("cmd.exe", "/C java -jar selenium-server-standalone-2.47.1.jar -role hub"); You didn't specify any port for the hub. Then the default hub -port is port 4444. I'm wondering why you were trying to connect "http://100.100.10.100:5555/wd/hub" instead of "http://100.100.10.100:4444/wd/hub" ?


1

This mentions this remedy for this error : If you are using the RemoteWebDriver and you get the The path to the chromedriver executable must be set by the webdriver.chrome.driver system property error message you likely need to check that one of these conditions is met: The chromedriver binary is in the system path, or The Selenium Server was ...


0

First you have to locate the web-element uniquely presented as select list on UI, you can use Firebug for that to find list element's id, name, xpath or css path. Then create SelectElement object passing this element locator attribute. To select an option in the list, you can choose any option like SelectByValue or SelectByText. using OpenQA.Selenium; using ...


0

I have used this and it worked for me... driver.SwitchTo().Frame(1); try { Assert.AreEqual("My Next Question", driver.FindElement(By.XPath(".//*........")).Text); } catch (AssertionException) { // verificationErrors.Append("Element was not displayed"); } string element = ...


0

For unnamed iFrames I think I would use the SRC attribute, since this should be unique: driver.switchTo().frame( driver.findElement(By.XPath("//iframe[contains(@src,'<the contents of the src here')]")) ); I think the frame numbers may change each run depending on the order of loading of the browser. Not sure when it gets its internal ID, I would not ...


0

You could try a couple of things.. Does it work using a different selector, e.g: By.XPath("//a[text()='My Timesheet']") ? If that doesn't work either, selenium may be trying to get the element before it has finished loading in the DOM. So we need to wait and retry to get the element. You can do that by using Webdriver implicit waits, or maybe implementing ...


0

If PhantomJS is giving you trouble I do not think there are any good headless alternatives at the moment. What you could try is setup a Virtualmachine to run the tests against that, this way it runs against a real browser, but its not in the way on your desktop. Even better is to setup a Selenium grid and run the tests there. If setting up a Virtualmachine ...


0

Use Selenium Remote Web Driver. As detailed in this SO question IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.HtmlUnit()) IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.HtmlUnitWithJavaScript()) I would stick to a non-headless browser. Chrome is the fastest here. It's far easier to debug and, from my experience, even ...


0

This may caused by any web elements which is overlapping with submit button. For an example, you have clicked on a dropdown and item lists are long so it may over lap the submit button. FireFox and IE can click on the submit button in this scenario but chrome can not. You can scroll to the submit button and click on it. you can use ...


1

What I'm getting from your description of problem is that you have a website developed in C# and need to test it. If you're thinking of writing tests, using Selenium, then it shouldn't matter which language your website is developed. You can have a website developed in C# and still use Python/Java code to write Selenium scripts and then test it. This is ...


1

You could, but you shouldn't. You can just create tests in Visual Studio. Just use the Selenium NuGet packages and write the tests in C#. This beats having two development envs, one for the app and one for the tests. Here is an getting started guide: http://automatetheplanet.com/getting-started-webdriver/ Or this older one without the NuGet package, but ...



Top 50 recent answers are included