-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
feature or fix already existsUpgrade to the latest version as neededUpgrade to the latest version as needed
Description
Look like self.hover_and_click() does not support xpath any way.
I try to use just
def test_sub_menu(self):
self.get("https://www.babyshop.com")
self.hover_and_click('//a[@data-class="babyshoes"]', '//div[@class="babyshoes mid-navigation-container"]//a')
and try
from selenium.webdriver.common.by import By
def test_sub_menu(self):
self.get("https://www.babyshop.com")
self.hover_and_click('//a[@data-class="babyshoes"]', '//div[@class="babyshoes mid-navigation-container"]//a',By.XPATH,By.XPATH)
but its function work only with css-selector
Metadata
Metadata
Assignees
Labels
feature or fix already existsUpgrade to the latest version as neededUpgrade to the latest version as needed