you dont need all of that to locate those elements by their id. you can probably get away with just switching to the you need frame once and then performing the actions. on that frame. you are pretty much traversing the dom to find your element
On Thu, Jan 9, 2014 at 12:10 AM, Sanjeev Singh <[email protected]>wrote: > Hi All, > > I am trying the below code and it is really really slow to respond.... > > browser.div(:id => "context-wrapper").frame(:id => > "ConcertoContext").div(:id => "cpo-folder").div(:class => > "cpo-content-wrapper").div(:class => "cpo-content").frame(:id => > "application-content").frame(:name => "SearchFilter").div(:class => > "dt-filter filter").form(:id => "filterForm").text_field(:id => > "attribute.Name-given").set "DEMO" > browser.div(:id => "context-wrapper").frame(:id => > "ConcertoContext").div(:id => "cpo-folder").div(:class => > "cpo-content-wrapper").div(:class => "cpo-content").frame(:id => > "application-content").frame(:name => "SearchFilter").div(:class => > "dt-filter filter").form(:id => "filterForm").text_field(:id => > "attribute.Name-surname").set "HIEONE" > browser.div(:id => "context-wrapper").frame(:id => > "ConcertoContext").div(:id => "cpo-folder").div(:class => > "cpo-content-wrapper").div(:class => "cpo-content").frame(:id => > "application-content").frame(:name => "SearchFilter").div(:class => > "dt-filter filter").div(:class => "actions").span(:id => > "default-button").span(:class => "first-child").button(:id => > "default-button-button").click > > All of the above 3 lines of code takes 3-4 minutes each to execute and by > the time the last line gets executed the browser session expires. > Please help me if there is any quicker way to find out the last object and > set the values. > > Thanks in advance...!!! > > -- > -- > 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.
