title: I would like to use Selenium to click on the link in a html table
body: <p>I am using the following code to get the value from the html below:</p>
  
  <pre><code>//findTables(driver);
  WebElement content = driver.findElement(By.id("tblTaskForms"));
  List&lt;WebElement&gt; elements = content.findElements(By.className("form-name name-column assets-Tag ng-binding"));
  
  WebElement myid = content.findElement(By.xpath("//tbody/tr[2]/td[2])[2]"));
  </code></pre>
  
  <p>An exception is getting thrown when I run the code above. Please let me know if you have any feedback. Thanks</p>
  
  <pre><code>&lt;div style="margin-bottom:20px; padding-top:20px" class="dropdown ng-scope"&gt; &lt;button ng-click="getModule()" class="btn btn-tasks"&gt;New asset&lt;/button&gt; &lt;button ng-click="showImportDialog()" class="btn btn-tasks"&gt;Import assets&lt;/button&gt; &lt;button class="btn btn-tasks pull-right btn-search"&gt;&lt;i class="glyphicon glyphicon-search"&gt;&lt;/i&gt;Search&lt;/button&gt; &lt;input ng-change="search()" ng-model="app.search" class="form-control form-control-hl pull-right input-search ng-pristine ng-valid" /&gt; &lt;/div&gt;
  &lt;table ng-show="listData.assets.length" class="table table-striped table-hover ng-scope" id="tblTaskForms"&gt;
     &lt;thead&gt;
        &lt;tr&gt;
           &lt;th style="border:0px; width:20px"&gt;
              &lt;div class="default-title"&gt;&lt;/div&gt;
              &lt;input type="text" style="border-left:1px #F5F5F5 solid" readonly="readonly" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;th style="border:0px"&gt;
              &lt;div class="default-title assets-Tag"&gt;Tag&lt;/div&gt;
              &lt;input type="text" name="Tag" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;th style="border:0px; width:65px"&gt;
              &lt;div class="default-title assets-Forms"&gt;Forms&lt;/div&gt;
              &lt;input type="text" name="Forms" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;th style="border:0px; width:100px"&gt;
              &lt;div class="default-title assets-Status"&gt;Status&lt;/div&gt;
              &lt;input type="text" name="Status" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;th ng-if="assetSettings.category1Enabled" style="border:0px; width:130px" class="ng-scope"&gt;
              &lt;div class="default-title assets-Class ng-binding"&gt;Class&lt;/div&gt;
              &lt;input type="text" name="Class" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;th ng-if="assetSettings.category2Enabled" style="border:0px; width:100px" class="ng-scope"&gt;
              &lt;div class="default-title assets-Type ng-binding"&gt;Type&lt;/div&gt;
              &lt;input type="text" name="Type" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;th ng-if="assetSettings.category3Enabled" style="border:0px; width:100px" class="ng-scope"&gt;
              &lt;div class="default-title assets-Area ng-binding"&gt;Area&lt;/div&gt;
              &lt;input type="text" name="Area" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;th ng-if="assetSettings.category4Enabled" style="border:0px; width:100px" class="ng-scope"&gt;
              &lt;div class="default-title assets-Location ng-binding"&gt;Location&lt;/div&gt;
              &lt;input type="text" name="Location" placeholder="Search" class="filter" /&gt;  
           &lt;/th&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;th style="border:0px; width:20px; max-width: 20px"&gt;
              &lt;div class="default-title"&gt;&lt;/div&gt;
              &lt;div class="input-substitute"&gt;&lt;/div&gt;
           &lt;/th&gt;
           &lt;th style="border:0px; width:20px"&gt;
              &lt;div class="default-title"&gt;&lt;/div&gt;
              &lt;input type="text" readonly="readonly" placeholder="Search" class="filter" /&gt;    
           &lt;/th&gt;
        &lt;/tr&gt;
     &lt;/thead&gt;
     &lt;tbody id="tbodyTaskForms"&gt;
        &lt;!-- ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;1 Satish Assest &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;1 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;2424 &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;2 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;2 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;2 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;2
           &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;24242 &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;3 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;3 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;3 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;3
           &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;Fire Extinguisher 201 &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;2 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Disabled &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;Safety &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;Fire Extinguisher &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;Main Plant &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;North Side &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;New Satish &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;Safety Requirements &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;1 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;NonNominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;Class 1 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;Eye Wash Station &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;Area 2 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;Location 10
           &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;tag &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;class &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;type &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;Area &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;location
           &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;test asset 23 &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;1 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;Production &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;Chromatograph &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;Main Plant &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;South Side &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;testxx &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt; &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
        &lt;tr ng-show="!el.out" ng-repeat="el in listData.assets" class="ng-scope"&gt;
           &lt;td class="form-del"&gt; &lt;span title="Edit this item" ng-click="getModule(el.ID)" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-edit trash-icon"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td ng-click="getModule(el.ID)" class="form-name name-column assets-Tag ng-binding"&gt;Water Tank &lt;/td&gt;
           &lt;td class="form-name assets-Forms ng-binding"&gt;0 &lt;/td&gt;
           &lt;td class="form-name assets-Status ng-binding"&gt;Nominal &lt;/td&gt;
           &lt;!-- ngIf: assetSettings.category1Enabled --&gt;
           &lt;td ng-if="assetSettings.category1Enabled" class="form-name assets-Class ng-binding ng-scope"&gt;Production &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category1Enabled --&gt;&lt;!-- ngIf: assetSettings.category2Enabled --&gt;
           &lt;td ng-if="assetSettings.category2Enabled" class="form-name assets-Type ng-binding ng-scope"&gt;Water Pump &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category2Enabled --&gt;&lt;!-- ngIf: assetSettings.category3Enabled --&gt;
           &lt;td ng-if="assetSettings.category3Enabled" class="form-name assets-Area ng-binding ng-scope"&gt;Area 10 &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category3Enabled --&gt;&lt;!-- ngIf: assetSettings.category4Enabled --&gt;
           &lt;td ng-if="assetSettings.category4Enabled" class="form-name assets-Location ng-binding ng-scope"&gt;Location 2
           &lt;/td&gt;
           &lt;!-- end ngIf: assetSettings.category4Enabled --&gt;
           &lt;td class="form-del"&gt; &lt;span title="Copy/Move this item" ng-click="copyDomain(el, 'Asset')" ng-hide="pusblished" class="fa fa-copy"&gt;&lt;/span&gt;  &lt;/td&gt;
           &lt;td class="form-del"&gt; &lt;span title="Delete this item" ng-click="deleteDomain(el.ID, 'Asset')" aria-hidden="true" ng-hide="pusblished" class="glyphicon glyphicon-trash trash-icon"&gt;&lt;/span&gt;    &lt;/td&gt;
        &lt;/tr&gt;
        &lt;!-- end ngRepeat: el in listData.assets --&gt;
     &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>