<div id="headerHome">
<div class="utilityNavHome" id="utilityNavHome">
<form name="validateDealer" method="post" action="validateDealer.poswotdo"
onsubmit="clickOnVerifyDealer('validateDealer', true);">
<input type="hidden" name="dispatch" value="error">
<input type="hidden" name="forwardName" value="success">
<input type="hidden" name="oneTimeForward" value="">
<div style="float: left;position: relative;" class="extendedWidth">
<div style="float:left;" class="attLogoHeaderPad">
<img class="attLogoWidth" alt="AT&amp;T Logo" title="AT&amp;T Logo"
src="/images/header_logo.gif">
</div>
<div style="float:right;padding-top: 5px;">
 <div style="clear: both;padding-bottom: 5px">
<div class="userInfoLabel">Dealer:</div>
<div class="userInfoText orange">
 *<input type="text" name="dealerCode" maxlength="7" size="7" value*
*
*
i want to access the underlined input type element.
*
*
*
*


On Wed, Jan 23, 2013 at 10:27 PM, Joe Fleck <[email protected]> wrote:

> Deepak,
>
> I don't see the text_field is your html.  Can you give us all of the html?
>
> Thanks,
> Joe
>
> Just something I found.  May not pertain to your issue.
> Watir has a method that shows all frames on a page:
> $ie.show_frames
> result:
> there are 2 frames
> frame  index: 1 name: menu
> frame  index: 2 name: main
>
> run that in your irb and if its see the frame you might want to use
> its index value instead of name.'
>
>
> On Wed, Jan 23, 2013 at 10:33 AM, Deepak Kumar
> <[email protected]> wrote:
> > require 'watir'
> > include Watir
> > Watir::Browser.default = 'ie'
> > $ie = Browser.new
> > $ie.goto("https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html";)
> > $ie.text_field(:id,"Userid").set("Pos3nbi")
> > $ie.text_field(:id,"Password").set("unix11a")
> > $ie.select_list(:id,"market").select("Dallas")
> > $ie.image(:id,"Submit").click
> > $ie.frame(:name,"centent").flash
> > $ie.frame(:name,"centent").text_field(:name,"dealerCode").set("22r25")
> >
> >
> > i used the following code and getting the following error
> > irb(main):015:0>
> > $ie.frame(:name,"centent").text_field(:name,"dealerCode").set("22r25")
> > NoMethodError: unknown property or method: `body'
> >     HRESULT error code:0x80020006
> >       Unknown name.
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in
> > `method_missing'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in
> > `__ole_inner_elements'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:199:in
> > `each_element'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:224:in
> > `each'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:212:in
> > `locate'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:5:in
> > `locate'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/element.rb:63:in
> > `assert_exists'
> >         from
> >
> c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:287:in
> > `set'
> >         from (irb):15
> >         from c:/rubyshell/ruby/bin/irb:12:in `<main>'
> >
> >
> >
> >
> >
> >
> > On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote:
> >>
> >> Hi everyone,
> >> I am trying to access a text_field of page.HTML format is as follows
> >>
> >> <html>
> >>   <head>-</head>
> >>         <body>
> >>         <iframe name="centent" src="homepage.jsp">
> >>                      #document
> >>                           <html slick-uniqueid = "1">
> >>                                 <head>-<head>
> >>                                 <body>
> >>                                     <script> --</script>
> >>    <div id = "headerHome">
> >> < div class="utilityNavHome" id="utilityNavHome">
> >>    <form name = 'validateDealer'>
> >>
> >> i tried through IRB and tried to us flash() function but can only use
> the
> >> function on Iframe tag after that i am not able to acess any element.
> >> Is "#document" creating a problem.
> >>
> >> Thanks & regards
> >> Deepak Kumar
> >>
> >>
> > --
> > 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]
>
> --
> 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]
>

-- 
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]

Reply via email to