Relative Content

Tag Archive for javaselenium-webdriver

get computed style with selenium

I need to get a computed style attribute (pointer-events) which I can see in the Browser dev-tools, as highlighted in screenshot. Things linke element.getAttribute("style") don’t give me the computed styles. Ho can I get them with selenium and java?

stalenessOf vs invisibilityOf in Selenium Java

Could you explain the differences between **stalenessOf **vs **invisibilityOf **?
Both checked if element invisible/no attached to the DOM. And can’t understand when should implement one instead of other

Network interception and access to request reponse with Selenium BiDi

I’m currently working on this demo project using Selenium Java to explore the functionalities that I usually use in e2e test automation projects and to serve as a reference for future projects. I’d like to know if there’s a way to intercept network requests and access their response body using the Selenium BiDi APIs.

Why do I get NoSuchSessionException, although WebDriver holds a Chromedriver instance?

public class TestBase extends HelperMethods { protected static final Logger LOGGER = Logger.getLogger(TestBase.class.getName()); protected final Faker faker = new Faker(); protected WebDriver driver; protected WebDriverWait wait; protected DashboardPage dashboard; @BeforeMethod @Parameters({“url”}) public void setup(String url) { driver = Driver.get(); // Initialize the driver wait = new WebDriverWait(driver, Duration.ofSeconds(10)); driver.manage().window().maximize(); driver.get(url); dashboard = new DashboardPage(); } […]