SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    couldn\'t insert data for a WebFile

    I recorded the below code
    Browser("Travel Club User Home").Page("Customer Service : Enter").WebFile("file").Set "anything"
    When I play back QTP is unable to fill the data into the WebFile field , I tried everything and it's not working
    I used DP and it didn't work either
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebFile("name:=file").Set "anything"
    I searched this forum and couldn't find any solutions.
    Any suggestions? [img]/images/graemlins/confused.gif[/img]
    Thank you
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  2. #2
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: couldn\'t insert data for a WebFile

    I am posting the source code because I thought it may help :
    <form method="post" enctype="multipart/form-data">
    Enter the location of the PNR file you want to upload:<br><br>
    <input type="file" size="50" name="file" /><br><br><br>
    <center><input type="submit" name="changeByFile" value="Submit" class="button"/></center>
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    London, U.K
    Posts
    1,804
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: couldn\'t insert data for a WebFile

    What do you mean by not working? Get error message?

    You could do :

    Browser("Travel Club User Home").Page("Customer Service : Enter").WebFile("file").click

    then enter location in dialog box.

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: couldn\'t insert data for a WebFile

    B().P().object.getElementsByName("file")(0).value= "C:\testfile.txt"

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:24 PM.

Copyright BetaSoft Inc.