SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SetText is not working for HtmlTextField

    Hi,
    I have done some scripts by Silk5.0.3. Now I ran into silk6.0. But Some statements are getting failure. SetText() is not working properly in 6.0. It blindly added the passing string to the existing string. But in 5.0, first it will clear the content and then put the passing value.

    How can solve this pbm...?
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  2. #2
    Member
    Join Date
    Jun 2001
    Location
    Berkeley, CA, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SetText is not working for HtmlTextField

    You can modify the HtmlTextField class to work around this problem.

    winclass HtmlTextField : HtmlTextField
    {
    SetText(STRING sText)
    {
    this.ClearText()
    derived::SetText(sText)
    }
    }

    If ClearText does not work you can create a modified routine that does the same thing. It also would reside in the HtmlTextField class.

    NewClearText()
    {
    this.TypeKeys("<Home>")
    this.TypeKeys("<Shift-End>")
    this.TypeKeys("<Delete>")
    }

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 05:57 PM.

Copyright BetaSoft Inc.