selenium webdriver – I am unable to check whether the dropdown contains title “Job Titles”

I was testing this website using selenium in java
opensource-demo.orangehrmlive.com/
Im stuck in this part of the testing , where i have to check whether the dropdown contains title “Job Titles”
enter image description here

Actions action1 = new Actions(driver);
action1.moveToElement(driver.findElement(By.xpath("//*[@id=\"app\"]/div[1]/div[1]/header/div[2]/nav/ul/li[2]"))).build().perform();

Using the above code it is hovering over The “Job” but not clicking it. I tried using linktext, partial text, select but every time its showing “element not found” and even tried using wait.

Read more here: Source link