Unable to locate an element in selenium webdriver using name and xpath
<p>Am very new to Selenium just learnt few things and trying to automate.Unable to locate an element in Selenium webdriver for the below one:</p>

<pre><code>&lt;tbody class="jira-restfultable-create"&gt;
   &lt;tr class="jira-restfultable-row jira-restfultable-editrow jira restfultable-focused"&gt;
       &lt;td class="jira-restfultable-order"&gt;
       &lt;td&gt;&lt;/td&gt;
       &lt;td&gt;&lt;textarea class="ztextarea noresize ztextarea-step" rows="4" name="step"&gt;  &lt;/textarea&gt;
       &lt;/td&gt;
   &lt;td&gt;
</code></pre>

<p></p>

<p>I have written code like</p>

<pre><code>driver.findElement(By.name("step")).sendKeys("step-1");
</code></pre>

<p>and also tried with</p>

<pre><code>driver.findElement(By.xpath("//*[@name = 'ztextarea noresize ztextarea-step']")).sendKeys("step-1");
</code></pre>

<p>Anyone please help me. </p>

<p>And also please suggest some sites or links to learn more about locators especially xpath. I tried  few but not getting it in depth.</p>

<p>Thanks in advance.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html class="mozilla"&gt;
&lt;head&gt;
&lt;body id="jira" class="aui-layout aui-theme-default ka ajax-issue-search-and-view page-type-navigator navigator-issue-only" data-version="6.2" data-aui-version="5.3.5"&gt;
&lt;div id="page"&gt;
&lt;header id="header" role="banner"&gt;
&lt;fieldset class="parameters hidden dont-default-focus"&gt;
&lt;script type="text/javascript"&gt;
&lt;nav class="aui-header aui-dropdown2-trigger-group" role="navigation" data-aui-responsive="true"&gt;
&lt;div class="aui-header-inner"&gt;
&lt;div class="aui-header-primary"&gt;
&lt;h1 id="logo" class="aui-header-logo aui-header-logo-custom"&gt;
&lt;ul class="aui-nav" style="width: auto;"&gt;
&lt;li&gt;
&lt;li&gt;
&lt;li&gt;
&lt;li&gt;
&lt;li&gt;
&lt;a id="zephyr_je.topnav.tests" class="aui-nav-link aui-dropdown2-trigger " aria-owns="zephyr_je.topnav.tests-content" aria-haspopup="true" title="Zephyr Test Management and Execution" href="/secure/ZephyrWelcome.jspa"&gt;Tests&lt;/a&gt;
&lt;div id="zephyr_je.topnav.tests-content" class="aui-dropdown2 aui-style-default"&gt;
&lt;/li&gt;
&lt;li style="display: none;"&gt;
&lt;li id="create-menu"&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="aui-header-secondary"&gt;
&lt;/div&gt;
&lt;/nav&gt;
&lt;/header&gt;
&lt;section id="content" role="main"&gt;
&lt;div class="issue-container" tabindex="-1"&gt;
&lt;div id="issue-content" class="issue-edit-form"&gt;
&lt;div class="stalker-placeholder issue-header js-stalker" style="visibility: hidden; height: 135px; width: 1349px;"&gt;&lt;/div&gt;
&lt;header id="stalker" class="issue-header js-stalker detached" style="position: fixed; top: 0px; left: 0px;"&gt;
&lt;div class="issue-body-content"&gt;
&lt;div class="aui-group issue-body"&gt;
&lt;div class="aui-item issue-main-column"&gt;
&lt;div id="details-module" class="module toggle-wrap"&gt;
&lt;div id="descriptionmodule" class="module toggle-wrap"&gt;
&lt;div id="view_issue_steps_section" class="module toggle-wrap"&gt;
&lt;div id="view_issue_steps_section_heading" class="mod-header"&gt;
&lt;div class="mod-content"&gt;
&lt;div id="project-config-panel-versions" class="project-config-panel"&gt;
&lt;form id="project-config-versions-add" class="aui" action="#"&gt;
&lt;table id="project-config-steps-table" class="aui jira-restfultable jira-restfultable-allowhover"&gt;
&lt;thead&gt;
&lt;tbody class="ui-sortable"&gt;
&lt;tbody class="jira-restfultable-create"&gt;
&lt;tr class="jira-restfultable-row jira-restfultable-editrow jira-restfultable-focused"&gt;
&lt;td class="jira-restfultable-order"&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td style="height: 81px;"&gt;
&lt;textarea class="ztextarea noresize ztextarea-step" rows="4" name="step" style="height: 72px;"&gt;&lt;/textarea&gt;
&lt;/td&gt;
&lt;td style="height: 81px;"&gt;
&lt;td style="height: 81px;"&gt;
&lt;td class="jira-restfultable-operations"&gt;
&lt;div class="restfultable-operations-wrapper"&gt;
&lt;input class="aui-button" type="submit" value="Add" accesskey="s"&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td class="jira-restfultable-throbber"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;div id="project-config-error-console"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="view_issue_execution_section" class="module toggle-wrap"&gt;
&lt;div id="view_issue_execution_section_heading" class="mod-header"&gt;
&lt;div class="mod-content"&gt;
&lt;/div&gt;
&lt;div id="activitymodule" class="module toggle-wrap"&gt;
&lt;div id="addcomment" class="module"&gt;
&lt;div class="mod-content"&gt;
&lt;div class="mod-footer"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="viewissuesidebar" class="aui-item issue-side-column"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;fieldset class="hidden parameters"&gt;
&lt;div id="systemFiltersJson" style="display:none;"&gt;[{"id":-1,"name":"My Open Issues","jql":"assignee = currentUser() AND resolution = Unresolved ORDER BY updatedDate DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by Me","jql":"reporter = currentUser() ORDER BY createdDate DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-3,"name":"Recently Viewed","jql":"issuekey in issueHistory() ORDER BY lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-4,"name":"All Issues","jql":"ORDER BY createdDate DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]&lt;/div&gt;
&lt;div id="inline-dialog-c14577633211060" class="aui-inline-dialog aui-help-tip" style="top: 116px; right: 10px; display: none;"&gt;
&lt;/section&gt;
&lt;footer id="footer" role="contentinfo"&gt;
&lt;/div&gt;
&lt;div id="fancybox-tmp"&gt;&lt;/div&gt;
&lt;div id="fancybox-loading"&gt;
&lt;div id="fancybox-overlay"&gt;&lt;/div&gt;
&lt;div id="fancybox-wrap"&gt;
&lt;div id="edit-issue-dialog" class="jira-dialog box-shadow" style="display: none;"&gt;
&lt;div id="create-subtask-dialog" class="jira-dialog box-shadow" style="display: none;"&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>