3

Unfortunately, it's not possible to send arguments to annotation (reference) One possible solution would be to create a Page Object class for link and pass a WebElement based on its li node. Class Footer { @FindBy(css = "footer") WebElement baseElement; List<WebElement> links; Footer() { this.links = this.createLinks(); ...


2

Have you updated chrome driver as well? – Alexey R. Oct 30 '18 at 16:13 Resolved ! Upgrading to Chromedriver 2.43 did the trick. Latest Release: ChromeDriver 2.43 Supports Chrome v69-71 Changes include: [...] Fixed Switch to Frame is not spec compliant [...] Thanks to Alexey R.


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 ...


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 ....


1

Have you tried putting the variable in double quotes?   //*[text()="${uid}"]


1

What you're doing actually is: Click an item (click) Moving a mouse pointer to that item (moveToElement which accepts the target element as its parameter) There are no actions defined for dragging and dropping the items whatever they are (svg or other types of elements). You should use one of the following approaches: dragAndDropBy(WebElement source, int ...


1

If you use Python input getter, it should work: text = input("prompt") OBS: You probably shouldn't relay on user interaction on an automated checking script - the goal of it is exactly this: Perform the checking without wait for user evaluation during its execution.


1

I think there are two things you could try here Alert alert = driver.switchTo().alert(); alert().dismiss(); My other theory is that if you have tried to dismiss it manually through finding an ID for the X in the corner and trying to click it, you may have to wait until the element is clickable. WebElement element = driver.findElement(By.xpath); if (...


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