I created a table similar to yours,

public class Table12 extends DslContext{
  public void defineUI(){
   ui.Table(uid: "Test", clocator: [cellspacing: "0", cellpadding:
"0", border: "0"]){
      UrlLink(uid: "row: 1, column: 1", clocator: [:])
      Div(uid: "row: 2, column: 1", clocator: [:])
      Selector(uid: "row: 2, column: 2", clocator: [:])
    }
  }
}


Then created a test using the dump method as follows,

  void testTableIndex(){
    Table12 table12 = new Table12()
    table12.defineUI()
    table12.exploreJQuerySelector = false
    table12.dump("Test")
    table12.exploreJQuerySelector = true
    table12.dump("Test")
  }

Here is the output:

Dump locator information for Test
-------------------------------------------------------
Test: //descendant-or-self::tab...@cellspacing="0" and
@cellpadding="0" and @border="0"]
Test[1][1]: //descendant-or-self::tab...@cellspacing="0" and
@cellpadding="0" and @border="0"]/tbody/tr[child::td][1]/td[1]/
descendant-or-self::a
Test[2][1]: //descendant-or-self::tab...@cellspacing="0" and
@cellpadding="0" and @border="0"]/tbody/tr[child::td][2]/td[1]/
descendant-or-self::div
Test[2][2]: //descendant-or-self::tab...@cellspacing="0" and
@cellpadding="0" and @border="0"]/tbody/tr[child::td][2]/td[2]/
descendant-or-self::select
Test[3][3]: //descendant-or-self::tab...@cellspacing="0" and
@cellpadding="0" and @border="0"]/tbody/tr[child::td][3]/td[3]
-------------------------------------------------------


Dump locator information for Test
-------------------------------------------------------
Test: jquery=table[cellspacing=0][cellpadding=0][border=0]
Test[1][1]: jquery=table[cellspacing=0][cellpadding=0][border=0] >
tbody > tr:has(td):eq(0) > td:eq(0) a
Test[2][1]: jquery=table[cellspacing=0][cellpadding=0][border=0] >
tbody > tr:has(td):eq(1) > td:eq(0) div
Test[2][2]: jquery=table[cellspacing=0][cellpadding=0][border=0] >
tbody > tr:has(td):eq(1) > td:eq(1) select
Test[3][3]: jquery=table[cellspacing=0][cellpadding=0][border=0] >
tbody > tr:has(td):eq(2) > td:eq(2)
-------------------------------------------------------

Seems I cannot reproduce your problem here. Could you run the same
test in your project to see if you get a different output?

Thanks,

Jian

On May 22, 7:51 pm, John <[email protected]> wrote:
> I checked the code and seems it is correct. Could you post your UI
> module,
> I can use dump() method to test it.
>
> Thanks,
>
> Jian
>
> On May 22, 2:00 pm, dominicm <[email protected]> wrote:
>
> > Hi,
>
> > Have noticed that the jQuery selector does not correctly decrement the
> > table row number.
>
> > jQuesry selector
> > Command request: click[jquery=table[cellspacing=0][cellpadding=0]
> > [border=0] > tbody > tr:has(td):eq(2) > td:eq(0) table.TabBorder
> > a.TabLinks, ]
>
> > XPath selector for the same element
> > Command request: click[//descendant-or-self::tab...@cellspacing="0"
> > and @cellpadding="0" and @border="0"]/tbody/tr[child::td][2]/td[1]/
> > descendant-or-self::*/descendant-or-self::tab...@class="TabBorder"]/
> > descendant-or-self::a...@class="TabLinks"]
>
> > Above illustrates the problem. Should be tr:has(td):eq(1) for jQuery
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to