Hey Paul,
   
  It worked :)
   
  I just tried simulating it in a way things happen manually. I had actually 
tried the same thing yesterday, but was accessing the element by wrong method.
   
  So, following is what worked for me:
   
  $ie.p(:id,"pTypeHint").span(:index,"1").click
 $ie.text_field(:id,"txtLine1").set("Testing template postcardFooter\n Using 
blue color\n using center align \n Using New baby icon")
 
   $ie.p(:id,"pFooterHint").span(:index,"1").click
 $ie.text_field(:id,"txtLine2").set("Testing footer")
 
Thanks,
  Natasha
Paul Rogers <[EMAIL PROTECTED]> wrote:
  
this type of thing is quite common. What I think is happening is that
the textfield is not displayed, and the p is displayed so the text can
be styled better. Ive never worked on ine of these before, so can only
speculate on whats happening. If you can, Id work with one of your
developers to see what they are doing.

When you say it doesnt work - can you elaborate on what happens - is
there an exception etc?

Paul

On Mon, Oct 6, 2008 at 11:11 AM, Natasha wrote:
>
> Hi All,
>
> I need some help with 'p' input type.
>
> I have 2 snippets of html code, for 2 inputs:
>
> 1.
> ------------------------------------------------------------------------------------------
>   
>   > class="postcard">
>   > style="overflow:hidden;color: #000000;text-align:left;">

> > cols="36" wrap="hard" class="fonthelvetica" rows="17" maxlength="392"<br>> 
> > style="background-color:#;text-align:left;color:#000000; ">
>   
> Click here to add
> text
> 

> (ignore to leave blank)
> 

> 
> save
> 
> 
> 

> -------------------------------------------------------------------------------------------
>
> 2.
> -------------------------------------------------------------------------------------------
>   
>
> > style="display:none;" alt="" />
>
>
>   

>
> > rows="3" wrap="hard" maxlength="150" style="background-color:#;text-<br>> 
> > align:left;color:#;">
>   
> 
> Click here to add footer text
> 

> (ignore to leave blank)
> 

> 
> save
> 
> 
> -------------------------------------------------------------------------------------------
>
> I need to set value in the text area. But it fails using the following
> code:
>
> $ie.text_field(:id,"txtLine1").set("Testing template")
>
> I also tried the following:
>
> $ie.p(:id,"pLine1").span(:index,"1").click
> $ie.text_field(:id,"txtLine1").set("Testing template")
>
> Questions:
>
> 1. Can I set the value for paragragh directly?
> [$ie.p(:id,"pFooterHint").set("test") ]
>
> Please could you suggest something looking at the above code.
>
> Thanks and regards,
> Natasha Natasha
> >
>






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

Reply via email to