Re: [wtr-general] watir xpath how to use variable

2015-01-04 Thread Sohail Mirza
Hi, yep you're right. i missed basic topic "How to use variables inside strings" i got it and my code is working fine. On Sat, Jan 3, 2015 at 8:00 PM, Oscar Rieken wrote: > I would suggest you take some time and learn how ruby works, and how to > manage strings. > > On Fri, Jan 2, 2015 at 10:2

Re: [wtr-general] watir xpath how to use variable

2015-01-03 Thread Oscar Rieken
I would suggest you take some time and learn how ruby works, and how to manage strings. On Fri, Jan 2, 2015 at 10:23 AM, Sohail Mirza wrote: > Hi Joe > > I am getting the following error. > > *Code:* > $rowCount = @browser.table(:class, 'table table-hover table-condensed > table-bordered table-s

Re: [wtr-general] watir xpath how to use variable

2015-01-02 Thread Sohail Mirza
Hi Joe I am getting the following error. *Code:* $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[$rowCoun

Re: [wtr-general] watir xpath how to use variable

2014-12-31 Thread Joe Fleck
Hi, What is the error you are receiving? Joe On Dec 31, 2014 4:08 AM, "Sohail Mirza" 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-tabl

[wtr-general] watir xpath how to use variable

2014-12-31 Thread Sohail Mirza
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