Unable to click on Hoover content

Katalon Studio is not able click on element, even I tried giving different types of xpath. Please do let me know what is correct xpath for given html.

Operations

Below xpath didnot worked

//[@id=“bt-content”]/div[1]/div[2]/div/nav/ul/li[4]/div/div[2]
//
[@id=“bt-content”]/div[1]/div[2]/div/nav/ul/li[4]/div/div[2]/div/a

Hello @satish1607,

Can you please provide the html when inspecting the Operations.
I am not able to see any html

Thanks

It seems you are trying to click on either a div or an a tag. However, it looks like you are missing the tag of the id in your xpath, so maybe change the xpath to below. The missing tag could be a artifact of pasting into this forum. In that case, start your single line xpaths with a “back quote” (also called an acute; it’s along with the tilde key) to preserve the content.

//*[@id="bt-content"]/div[1]/div[2]/div/nav/ul/li[4]/div/div[2]/div/a

or

id("bt-content")/div[1]/div[2]/div/nav/ul/li[4]/div/div[2]/div/a

My concern with both of these xpaths is the “distance” you are away from the actual element. That path can break easily with a changing build. As @anuradha says, some HTML is better if you want us to assist you more. (Try a Right click on web page and select “Inspect”)

Thanks fro your replay below is the html code
operation.txt (876 Bytes)

thanks

Thanks for your help its not working,
Thanks fro your replay below is the html code
operation.txt (876 Bytes)

thanks

Hmmm. Maybe you can try:

//a/text()[2]
or
//a[contains(.,'Operations')]
or
//a[normalize-space(text()='Operations')]

Try this: Tip for finding CSS & XPath locators using Chrome with an example: