Questions tagged [descendant]

The offspring of a vertex v within the tree data structure can be defined as a vertex that is directly connected to v or one that is a descendant of any of its children through recursion.

Error message: Unable to find child element in Selenium WebDriver

I'm currently dealing with a registration page where I encountered an issue. During my testing phase, I attempted to register without inputting a first name. Upon clicking the register button, I expected to see a 'Required' notification la ...

What is the best way to add a "descendant" clause alongside an xpath variable?

Here's a snippet of the code I'm working on: public void someTest() { String x = "/html/body/div/div["; String y = "]/a"; for (int i = 1; i < 5; i++){ String links = x + i + y; driver.findElement(By.xpat ...

Customize Zurb Foundation: Applying styles to specific child elements based on current screen size (large, medium, small)

For wide displays, I aim to give a distinct border to each 7th element. However, on smaller screens, I wish to apply these styles to every 4th element instead. Is there a way for me to nest my styles within .small, .medium, and .large classes? ...