I further checked, basically when click on cell .. it rendered as textarea as following.... so i got it working with following line
@browser.textarea(:index,0).when_present.set 'test' Cheers [image: Inline image 1] On Wed, Jan 7, 2015 at 5:16 PM, Sohail Mirza <[email protected]> wrote: > Hi Joe, > Struck with strange issue... > I am trying set text in the cell of row with the following code but no > success. There is no error for executed script but no text typed in cell > and just got focus out from cell. > > > @browser.span(:xpath,'//*[@id="dSummary"]/div[2]/div/div[2]/div/div/div[2]/div[2]/div/div/div/span').when_present.click > //This click is to make cell editable. > > @browser.div(:xpath,'//*[@id="dSummary"]/div[2]/div/div[2]/div/div/div[2]/div[2]/div').flash > // i am using xpath of the following highlighted(blue) html rendered Div. > > @browser.div(:xpath,'//*[@id="dSummary"]/div[2]/div/div[2]/div/div/div[2]/div[2]/div').send_keys > "tester" // i am using xpath of the following highlighted(blue) html > rendered Div. > > *The following is rendered HTML snippet.* > <div ng-cell=""> > <div ng-cell-has-focus="" ng-dblclick="true && editCell()" > class="ng-scope"> > <div ng-edit-cell-if="!(isFocused && true)" class="ng-scope"> > <div class="ngCellText col1 colt1" style="word-break: break-all; > white-space: normal;" ng-class="col.colIndex()"><span ng-cell-text="" > class="ng-binding"></span></div> > </div> > </div> > </div> > > On Tue, Jan 6, 2015 at 7:19 PM, Joe Fleck <[email protected]> wrote: > >> Sohail, >> >> Anytime. Glad i could help. >> >> Joe >> >> On Tue, Jan 6, 2015 at 9:47 AM, Sohail Mirza <[email protected]> wrote: >> >>> Hi Joe, >>> It worked actually. >>> thanks you. >>> >>> On Tue, Jan 6, 2015 at 6:44 PM, Joe Fleck <[email protected]> wrote: >>> >>>> Hi Sohail, >>>> >>>> Have you tried anything? >>>> >>>> This might work: >>>> @browser.div(:class=>'ng-scope ngCellElement').send_keys "Test" >>>> >>>> Thank you, >>>> Joe >>>> >>>> On Tue, Jan 6, 2015 at 9:18 AM, Sohail Mirza <[email protected]> wrote: >>>> >>>>> Hi, >>>>> The following code is rendered for a text box. It does not have Input >>>>> tag and it does not have type attribute.. How can i set value in it? >>>>> >>>>> <div ng-cell-has-focus="" ng-dblclick="true && editCell()" >>>>> class="ng-scope ngCellElement" tabindex="0"> >>>>> >>>>> Any help please? >>>>> >>>>> -- >>>>> -- >>>>> 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. >>>> >>> >>> -- >>> -- >>> 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. >> > > -- -- 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.
