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 <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I need some help with 'p' input type.
>
> I have 2 snippets of html code, for 2 inputs:
>
> 1.
> ------------------------------------------------------------------------------------------
> <div id="divPostcardBody" class="fonthelvetica" style="background-
> image:url(/images/basic.png);  background-color:#ffffff;">
>                                                                        <div 
> id="divPostcardText"
> class="postcard">
>                            <p id="pLine1"
> style="overflow:hidden;color: #000000;text-align:left;"></p>
>                            <textarea id="txtLine1" name="txtLine1"
> cols="36" wrap="hard" class="fonthelvetica" rows="17" maxlength="392"
> style="background-color:#;text-align:left;color:#000000; "></textarea>
>                            <p id="pTypeHint" >
>                                <span> </span>Click here to add
> text
>                                <br/>
>                                <small>(ignore to leave blank)</small>
>                            </p>
>                            <a id="aEditTab" href="#">
>                                save
>                                <span></span>
>                            </a>
>                        </div>
> -------------------------------------------------------------------------------------------
>
> 2.
> -------------------------------------------------------------------------------------------
> <div id="divFootnote"  class="pNoPartner"  >
>
>                                <img id="imgAvatarBack" src="#"
> style="display:none;"  alt="" />
>
>
>                                                        <p id="pLine2" 
> style="text-align:left;color:#;"></p>
>
>                                                        <textarea 
> id="txtLine2" name="txtLine2" class="fonthelvetica"
> rows="3" wrap="hard" maxlength="150" style="background-color:#;text-
> align:left;color:#;"></textarea>
>                                                        <p id="pFooterHint"  >
>                                <span> </span>
>                                                                Click here to 
> add footer text
>                                <br/>
>                                <small>(ignore to leave blank)</small>
>                            </p>
>                                                        <a id="aEditFooterTab" 
> href="#">
>                                save
>                                <span></span>
>                            </a>
> -------------------------------------------------------------------------------------------
>
> 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