skip to Main Content

Html – driver.find_element can't find an element by "class_name"

I tried to use driver.find_element, by "class_name" to find button and click on it for expanding rooms on - https://www.qantas.com/hotels/properties/18482?adults=2&checkIn=2024-04-16&checkOut=2024-04-17&children=0&infants=0#view-rooms , but received error message raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".css-v84xw-NakedButton…

VIEW QUESTION

Problem with executing javascript code to do hover event over xpath element in selenium webdriver

I try to trigger hover event over an element declared by xpath statement in selenium webdriver: ((JavascriptExecutor) driver).executeScript("$('(//span[@class='attribute-square-container'])[2]').hover();"); but I'm receiving: org.openqa.selenium.JavascriptException: SyntaxError: missing ) after argument list What is incorrect in above line? I changed code a litle bit:…

VIEW QUESTION
Back To Top
Search