Skip to content
Advertisement

Tag: selenium

Difficulty with a locator(using java for selenium)

Complete newbie here…started trying to learn selenium with java this month. Having troubles locating one button, because it seems to lack name id, link and its class is weird looking. Can someone help me write a locator for it? Its an accept cookies button. Answer You can use either of the xpath option to identify the element. OR

Selenium, Scrolling page

I am trying to scroll webpage with Selenium- “https://jobsearch.az/vacancies”. But, you see when you open it and click on vacancy, there are two pages side by side to scroll. I need to scroll the one in the middle, so selenium can go and take info from other jobs too. But, now, it stops when it comes to 14, which is

Cannot invoke “org.openqa.selenium.WebElement.click()” because “this.hotelsLink” is null Maven

I try to do some tests using Selenium, but I can’t test what I do HomePage.java Hooks.java Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Starting ChromeDriver 101.0.4951.41 (93c720db8323b3ec10d056025ab95c23a31997c9-refs/branch-heads/4951@{#904}) on port 38072 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was

Advertisement