protractor icon indicating copy to clipboard operation
protractor copied to clipboard

How to test tr, td?

Open jasonnjit opened this issue 12 years ago • 4 comments

Hi, I am working on Protractor with tr, td elements. I tried to getText using id, but it doesn't work for me. Is that possible for me to find the tr, or td element? By the way, this table is inside an accordion plugin. Here is my code:

<accordion-group id="statementSummary-top-widget" heading="February 2014">
<div class="table-responsive">
 <table class="table table-striped table-bordered table-hover">
<thead>
 <tr>
<th colspan="2" id="statementSummary-statement-widget" translate>Statement</th>
</tr>
</thead>

Many thanks, guys.

jasonnjit avatar Aug 06 '14 20:08 jasonnjit

Please post questions like this to Stack Overflow, so we can keep the issue tracker clean for bugs and feature requests. If you post and link here I'll answer for you.

juliemr avatar Aug 06 '14 21:08 juliemr

@juliemr Okay, got it. Thank you, Julie.

jasonnjit avatar Aug 07 '14 00:08 jasonnjit

@juliemr Hi Julie, could I ask a question about the IE issue? We can run test scripts on Chrome, Safari, and Firefox based on Chromedriver, but for IE, we should use IEDriver, right?

jasonnjit avatar Aug 08 '14 13:08 jasonnjit

Correct.

juliemr avatar Aug 20 '14 23:08 juliemr