Not able to find element with Xpath

0 votes

I'm finding out the xpath for resource manager element,

I tried this:

driver.findElement(By.xpath("Resource Manager xpath")).click(), I turned up with


Error: Unable to find the element.

<div class="os-titlebar navbar navbar-inverse">

   <div class="navbar-inner">

      <div class="container">

          <ul class="nav menu-primary os-navbar-icon">

          <ul class="nav context-menu" >

           <ul class="nav os-navbar-icon os-titlebar-shortcuts pull-right os_shortcuts">

                 <li class="os-navbar-icon-home selected">

                 <li class="os-navbar-icon-quicklaunch os_quick_start">

                 <li class="os-navbar-icon-resourcemanager">

                  <li class="os-navbar-icon-apptray">

                  <li class="os-navbar-icon-notifications">

                  <li class="os-navbar-icon-minimise-close">

            </ul>

<form class="navbar-search pull-right ui-os-search-form" action="">

<ul class="nav os-navbar-icon os-desktop-navigation" style="left: 407.5px;">

</div>

Jul 4, 2018 in Selenium by Martin
• 4,320 points
4,452 views

1 answer to this question.

0 votes

You are using wrong xpath expression. This might work:

driver.findElement(By.xpath("//li[@class='os-navbar-icon-resourcemanager']")).click()

answered Jul 4, 2018 by Samarpit
• 5,910 points

Related Questions In Selenium

+1 vote
0 answers

Not able to find the element in a new form in the same webpage ,which popup after clicking a link

I am trying to locate an element ...READ MORE

Jun 27, 2020 in Selenium by Reshmi
• 130 points
1,577 views
0 votes
1 answer

Not able to run WebDriver test with Google Chrome.

Firefox is just default browser for tests ...READ MORE

answered Apr 21, 2018 in Selenium by king_kenny
• 3,710 points
1,862 views
0 votes
1 answer

How to find the absolute xpath of an element?

You can use the tool called chroPath ...READ MORE

answered Jan 7, 2019 in Selenium by Anjali
• 2,950 points
2,678 views
0 votes
1 answer
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
12,619 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,572 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
6,629 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,519 views
0 votes
1 answer

Not able to find web element in Span Tag

Try using class selector also. driver.findElement(By.cssSelector(".login-link")).click(); hash is used ...READ MORE

answered Jun 21, 2018 in Selenium by Samarpit
• 5,910 points
5,208 views
0 votes
1 answer

How to get next sibling element using XPath and Selenium for Java?

Below code will help you: Try following-sibling axis : WebElement ...READ MORE

answered May 15, 2018 in Selenium by Samarpit
• 5,910 points
20,281 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP