3

I am not sure what the code you have there do as it is incomplete. So assuming that you want to do data driven testing, use RobotFramework-datadriver https://github.com/Snooz82/robotframework-datadriver#structure-of-data-file Installation: pip install --upgrade robotframework-datadriver pip install --upgrade robotframework-datadriver[XLS] Create the ...


2

Like a lot of things in life, it depends. Both options you lay out will work for test automation. However, what is your overall goal? Are you testing a feature that is on one page? If so, you can load that page directly and test that feature. This is what you listed as option 1. Are you testing a feature integration point, like a page redirect? Are you ...


2

Try using JavaScriptExecutor C# IWebElement element = driver.FindElement(By.XPath("//button[@role='button']")); IJavaScriptExecutor jse2 = (IJavaScriptExecutor)driver; jse2.ExecuteScript("arguments[0].click()", element); Python element = driver.find_element_by_xpath("//button[@role='button']") driver.execute_script("arguments[0].click();", element)


1

Despite you have chosen Niels answer as correct, I would also suggest a way to work around your issue. What you're talking about is likely a "basic authentication". The best way to bypass this step is to add Authorization header to HTTP requests which are sent by your browser. To do that you need to set up some proxy which would add mentioned header with ...


1

Authentication via the URL has been deprecated for a while: While this may sound like a thunder from clear skies for Chrome users, it is not. The deprecation “order” comes from RFC 3986: ... 3.2.1. User Information ... Use of the format "user:password" in the userinfo field is deprecated. https://medium.com/@lmakarov/say-goodbye-to-urls-with-...


1

runs fine with chromium: thufir@dur:~/NetBeansProjects/scrape$ thufir@dur:~/NetBeansProjects/scrape$ gradle run > Task :run Starting ChromeDriver 75.0.3770.90 (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003}) on port 25016 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks ...


1

Hi @Forumqaa Below code may help for you. Please change the logic as per you. public class Sac { public static void main(String[] args) throws IOException { Sac s = new Sac (); s.getData("TC_001"); } public ArrayList<String> getData(String testCaseName) throws IOException{ ArrayList<String> a = new ArrayList<String>(); ...


1

Reason: This is a known issue for some time now. https://github.com/SeleniumHQ/selenium/search?q=ElementClickInterceptedException&type=Issues This exception suggests that there is another element (div below the button) will receive the click. Solutions: 1. Use another locator 2. Use Javascript executor driver.execute_script(JSCode,arguments) e.g. driver....


1

Assuming that you want to get the element "Echo Spot" from the Amazon.in page. WebElement ele2 = driver.findElement(driver.FindElement(By.XPath("//* [text()='Echo Spot']"));


1

// Find all rows with a class with TBLROW as sub-string List<WebElement> rowsWithName = driver.findElements(By.cssSelector("tr[class*=\"TBLROW\"]")); List<String> names = rowsWithName.stream().map(row -> // For each row row.findElements(By.className("TDOCLIST")) // Find all TDOCLIST cells ....


Only top voted, non community-wiki answers of a minimum length are eligible