Hi, What is the error you are receiving?
Joe On Dec 31, 2014 4:08 AM, "Sohail Mirza" <[email protected]> wrote: > Can we use variable for XPath property? > > The following line of codes failing > > $rowCount = @browser.table(:class, 'table table-hover table-condensed > table-bordered table-striped ng-scope ng-table').rows.size > > > @browser.text_field(:xpath,'/html/body/div/div[4]/div/div[2]/div/lookup-grid/div/div/div[1]/div/table/tbody/ > tr[*$rowCount*-2]/td[1]/input[1]').when_present.set 'test' > > Any comments? > > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
