Grow Together Mentors Inspire Us In Life

Internet

Technology

Gadgets

Latest Release

Tuesday, July 21, 2015

C# Selenium webdriver proxy settings Desired Capabilities

By ravindra -

The Siplest way to set proxy settings Firefox: String PROXY = "localhost:8080"; org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setHttpProxy(PROXY)      .setFtpProxy(PROXY)      .setSslProxy(PROXY); DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(CapabilityType.PROXY, proxy); IWebDriver driver...

Read More

Java Selenium webdriver Proxy settings Desired Capabilities

By ravindra -

The Simplest way to set proxy settings Firefox: String PROXY = "localhost:8080"; org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setHttpProxy(PROXY)      .setFtpProxy(PROXY)      .setSslProxy(PROXY); DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(CapabilityType.PROXY, proxy); WebDriver driver...

Read More

C# Selenium webdriver Advanced User intereactions

By ravindra -

The Advanced User Interactions require native events to be enabled. Here’s a table of the current support Matrix for native events: platformIE6IE7IE8IE9FF3.6FF10+Chrome stableChrome betaChrome devOperaAndroidiOS Windows XPYYYn/aYYYYY?Y [1]n/a Windows 7n/an/aYYYYYYY?Y [1]n/a Linux (Ubuntu)n/an/an/an/aY [2]Y [2]YYY?Y [1]n/a Mac OSXn/an/an/an/aNNYYY?Y [1]N...

Read More

Monday, July 13, 2015

Java Selenium webdriver - Get attribute value using XPath

By ravindra -

Use following simple method to get Id attribute using XPath, public string GetIDxpath(string xPath)         {             string id = driver.findElement(By.XPath(@" + xPath + @")).GetAttribute("id");...

Read More

Java Selenium webdriver - Get all descendent elements list of a XPath

By ravindra -

Use following generic method to get list of descendent elements using XPath public List<WebElement> FindDescendentsXPath(WebElement objectName)         {             List<WebElement> descendents = objectName.findElements(By.XPath(".//*"));    ...

Read More

C# Selenium webdriver - Get all descendent elements list of a XPath

By ravindra -

Use following generic method to get list of descendent elements using XPath public IList<IWebElement> FindDescendentsXPath(IWebElement objectName)         {             IList<IWebElement> descendents = objectName.FindElements(By.XPath(".//*"));    ...

Read More

C# Selenium webdriver - generic method for get child Xpath

By ravindra -

Use following generic method for get child XPath public static string FindChildXPath(string element)         {             string childXpath = "//[@id='" + element + "']/" +...

Read More