Skip to content

Tag: selenium-webdriver

org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: not able to locate the element inside table tag

I was trying to locate the element which is present inside the table tag But iam getting the error “org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {“method”:”xpath”,”selector”:”//div[@id=’divTable’]/child::div/child::div/child::table/child::tbody/child::tr/child::td2/input”} (Session info: chrome=103.0.5060.114)” Here is my code…. Here is HTML…. Here is page source….. PAGE SOURCE IMAGE ERROR IN ECLIPSE Answer We can see there is one frame before the element so

Cannot invoke “” because “this.hotelsLink” is null Maven

I try to do some tests using Selenium, but I can’t test what I do Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See 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 for suggestions on keeping ChromeDriver safe. ChromeDriver was

assertAll a list of booleans

There is a list of pages that can be accessed by a user. The verifyAccess has a function that returns true/false depending on which page the user is trying to access. For example – look for the profile IMG locator on a profile page, the Logout button on the logout page, and so on … I am using below imports

Exception in thread “main” java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap error using Selenium Java

Code trials: Error: Error snapshot: Answer This error message… …implies that the file com/google/common/collect/ImmutableMap might be corrupted or there is some incompatibility between the version of the binaries you are using. Further you need to take care of a couple of things as follows: Instead of storing the chromedriver.exe binary right under C: try to put it within a directory

How to extract the error hint of text box when user entered incorrect value in Selenium

When incorrect value is entered in textbox next hint is appeared: HTML: I need to get text from this hint. I have tried to used: but it did not help. How to get text from such hints? Answer This error hint is basically the HTML5 Constraint validation message which is the outcome of Constraint API’s element.setCustomValidity() method. To get text