I am trying to access the table row data which is under the table body.
Following is my HTML:
<div class=”panel panel-default” id=”confirmationNotificationPanel”>
<div class=”panel-heading”>
<h3 class=”panel-title pull-left”>Patient Confirmation Notifications</h3>
<button type=”button” class=”btn btn-success btn-xs pull-right” onclick=”createConfirmationNotification()”><i class=”fa fa-plus-circle”></i> Add New</button>
<div class=”clearfix”></div>
</div>
<div class=”table-responsive”>
<table class=”table table-striped table-bordered table-hover”>
<tbody id=”confirmationNotificationTableBody”>
**<tr id=”confirmationNotification49″ data-id=”49″>**
<td style=”width: 180px;”>
<select id=”confirmationNotificationSource49″ class=”form-control” style=”display: inline-block;”>
<option value=”CALL”>CALL</option>
<option value=”SMS”>SMS</option>
<option value=”EMAIL”>EMAIL</option>
<option value=”APP”>APP/SMS</option>
<option value=”WHATSAPP”>WHATSAPP/SMS</option>
</select>
</td>
I only want to get the data-id value of the table row. I am using the CSS Extractor but not able to access that data-id value. I also tried with other extractors but not able to access the same.
Source: Read More