skip to Main Content

Css – Finding nested element using Xpath in Selenium not working

given the following site and locators: https://ultimateqa.com/automation XPATH CONTAINER = (By.XPATH, '//ul[@class="bottom-nav"]') MENU = (By.XPATH, '//li[contains(@class, "menu-item")]') CSS BOTTOM_NAV = (By.CSS_SELECTOR, '.bottom-nav') MENU_ITEM = (By.CSS_SELECTOR, '.menu-item') I need to find inside the BOTTOM_NAV the number of MENU_ITEMS. When using nested…

VIEW QUESTION

How to get selector string with jQuery?

Let say I have JSON like this: { "foobar": "data foobar", "foo": "data foo", "bar": "data bar", "baz": "data baz", "qux": "data qux", "quux": "data quux", "corge": "data corge", "grault": "data grault", "garply": "data garply", "waldo": "data waldo", "fred": "data…

VIEW QUESTION
Back To Top
Search