Selenium web driver: unable to locate element -


i new selenium: have source , trying click on button using xpath selenium webdriver. button(last line in html) trying click on:

i use xpath: "//div[@id='innerbody']/div[4]/div/div/ul/li[3]/button" , gives me unable locate element.

any idea why , how should go it.

<document> <html class="fullpage" xmlns="http://www.w3.org/1999/xhtml" style=""> <head> <body class="brand brand-mastwide fullpage no-footer width-hd" style=""> <div id="cboxoverlay" style="display: none;"/> <div id="colorbox" class="" style="padding-bottom: 2px; padding-right: 2px; display: none;"> <div id="masthead" class="masthead full-width"> <div id="toast-absolute" class="full-width"> <!-- content --> <div id="outer-outer" class="with-nav"> <div id="outer-wrapper" class="full-width"> <a name="pagetop"/> <div class="main-wrapper"> <div class="inner"> <div id="applicationhost"> <div data-bind="router: router" data-view="_app/appshell" style="" data-active-view="true"> <div class="durandal-wrapper" data-view="_app/home/homeshell" style="" data-active-view="true"> <link rel="stylesheet" href="/cache/sf/_app/home/homeshell.css"/> <link rel="stylesheet" href="/cache/sf/css/lib/joyride-2.1.css"/> <div id="regionmain" class="clear-block with-side with-side-left" data-bind="css:{'clear-block with-side with-side-left': showleftnavigation()}"> <div class="content-pane main"> <div class="inner-content-pane main"> <div data-bind="compose: message"/> <div class="router" data-bind="router: router"> <div class="durandal-wrapper" data-view="_app/home/filebox/filebox" style="" data-active-view="true"> <h1 data-bind="text: title">bestandsvak voor satish vanahalli</h1> <link href="/cache/f69bb3f534fb459062226526576bc4dea7e8fe7e/css/lib/jqui/jquery-ui-1.10.0.sf.css" type="text/css" rel="stylesheet"/> <br/> <div id="innerbody" class="file-box-container"> <div class="errortip" data-bind="text: errormessage, visible: errormessage" style="display: none;"/> <div class="clear-block"> <div class="upload-button"> <div data-bind="compose: filelist"> <div class="c-content" data-view="_app/home/common/filelist/filelist" style="" data-active-view="true"> <div class="secondary-ctrl btnl-row title-noborder clear-block" data-bind="css: { hidden: !showsecondary }"> <ul class="context-actions" data-bind="visible: capabilities.allowcheckboxes, foreach: currentactions"> <li class="hover-list"> <li class="hover-list"> <li class="hover-list"> ***<button class="txt context-action" data-bind="click: click">*** 

try xpath:

   //ul[@class='context-actions']/li[3]/button[@class='txt context-action][3] 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -