I think you are making the location more complicated than it needs to be. if its the only :name => '$PSearchPage$pClaimNumber', :id => "ClaimNumber" you could do something like
b.iframe(:id => 'PWGadget3Ifr').text_field(:name => '$PSearchPage$pClaimNumber', :id => "ClaimNumber").html On Fri, Mar 15, 2013 at 5:00 AM, Željko Filipin <[email protected]>wrote: > What do you want to do? Count the number of columns in the table? > > Please provide relevant HTML (it is hard to try things on a screenshot). > > Željko > -- > https://leanpub.com/watirbook > > > On Thu, Mar 14, 2013 at 10:49 PM, Pavan Turlapati < > [email protected]> wrote: > >> Hi, >> I am pretty new to Watir and was just trying to see the >> feasibility of automating our Application using Watir. I am kind of struck >> as one of the start point in our application is to search a value and Watir >> is giving me* "Watir::Exception::UnknownObjectException: Unable to >> locate element,"*. So, I need some of the experts help to give me a >> possible solution. >> >> I have also attached the image file of how deep the object is. Below is >> the line(s) which I used >> >> >> >> $ie.div(:id=>'PegaWebGadget3').iframe(:id=>'PWGadget3Ifr').div(:id=>'PEGA_HARNESS').div(:id=>'RULE_KEY').div(:id=>'HARNESS_CONTENT').table.table(:id=>'EXPAND-OUTERFRAME').table(:id=>'').column_count >> This is giving is a value of 1 but as seen in the image the number of >> columns (TD's) are more than 1. So it is not giving the current count >> >> >> $ie.div(:id=>'PegaWebGadget3').iframe(:id=>'PWGadget3Ifr').div(:id=>'PEGA_HARNESS').div(:id=>'RULE_KEY').div(:id=>'HARNESS_CONTENT').table.table(:id=>'EXPAND-OUTERFRAME').table(:id=>'').tr.td.text_field(:name=>'$PSearchPage$pClaimNumber',:type=>'text').flash >> >> This is line which I am using for the text box and it is giving me >> objectException. >> >> Please let me know if you need any other information. >> >> Thanks in advance. >> >> Regards, >> Pavan Turlapati >> [email protected] >> >> -- >> -- >> 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/groups/opt_out. >> >> >> > > -- > -- > 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/groups/opt_out. > > > -- -- 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/groups/opt_out.
