:), yes, I made a mistake. No id, but class. Thanks. Wesley Chen.
On Mon, Jun 15, 2009 at 3:23 PM, Prajakta Jadhav <[email protected]>wrote: > try this --> > puts ie.cell(:class,"ms-OneMerckQuickPollMessageDisplayCell").text > > Prajakta > > On Mon, Jun 15, 2009 at 12:44 PM, Rahul Ahuja <[email protected]>wrote: > >> >> But, there is no :id property associated with it. >> >> Thanks Wesley Chen for your quick response. >> But, unfortunately the solution shared doesnt seem to work. >> >> html code is: >> <TD class="ms-OneMerckQuickPollMessageDisplayCell"> >> You have already submitted your response. >> </TD> >> >> >> Hence, the only attribute I have to access text is" class". Please >> suggest how to go ahead with it. >> >> Thanks, >> Rahul >> >> On Jun 15, 3:06 am, Wesley Chen <[email protected]> wrote: >> > puts ie.cell(:id,...).text >> > Thanks. >> > Wesley Chen. >> > >> > >> > >> > On Mon, Jun 15, 2009 at 2:48 PM, Rahul Ahuja <[email protected]> >> wrote: >> > >> > > I want to compare value of textfield appeared on webpage with >> > > expected >> > > output. >> > >> > > for example: >> > > One my web application; i have a submit button. Wheneven I click it; >> > > following message is displayed. >> > >> > > You have already submitted your response. >> > >> > > Following is the html code for it: >> > >> > > <TD class="ms-OneMerckQuickPollMessageDisplayCell"> >> > > You have already submitted your response. >> > > </TD> >> > >> > > Please do let me know specific command to capture this. >> > >> > > Thanks in Advance >> > > Rahul- Hide quoted text - >> > >> > - Show quoted text - >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
