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,210 points
461 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,130 points

Related Questions In Selenium

0 votes
1 answer

Not able to run WebDriver test with Google Chrome.

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

answered Apr 20, 2018 in Selenium by king_kenny
• 3,590 points
137 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 in Selenium by Anjali
• 2,910 points
74 views
0 votes
1 answer
0 votes
1 answer

Xpath element not found

You need to induce WebDriverWait with expected_conditions ...READ MORE

answered Mar 27, 2018 in Selenium by ned_crew
• 1,610 points
100 views
0 votes
1 answer

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,030 points
56 views
0 votes
1 answer
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,130 points
420 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
43 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,130 points
1,088 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,130 points
3,696 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.