SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Issue when entering a text in the web edit - Ajax

    Hi,

    I am trying to enter a data (text) in the webedit which is inside the Ajax control. The code that I used below is not working. Can some one please help?

    Browser("New Group Product Wizard").Page("New Group Product Wizard_6").WebButton("Add Waiting Period").Click
    If Browser("New Group Product Wizard").Page("New Group Product Wizard_6").Frame("ctl00_RadWindowManager").WebEdit ("txtWaitPeriodName").Exist then
    val = Browser("New Group Product Wizard").Page("New Group Product Wizard_6").Frame("ctl00_RadWindowManager").webEdit ("txtWaitPeriodName").GetROProperty("name")
    Browser("New Group Product Wizard").Page("New Group Product Wizard_6").Frame("ctl00_RadWindowManager").WebEdit ("html tag:=INPUT","type:=text","name:="&val).Set ValueTOenter
    end if

  2. #2
    Senior Member
    Join Date
    Aug 2007
    Posts
    134
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue when entering a text in the web edit - A

    Hi,

    Firstly why are you trying to identify webedit using DP. Why are you not directly using webedit object stored in your OR.

    Browser("New Group Product Wizard").Page("New Group Product Wizard_6").Frame("ctl00_RadWindowManager").webEdit ("txtWaitPeriodName").Set ValueTOenter

    When you try to do as,

    Browser("New Group Product Wizard").Page("New Group Product Wizard_6").Frame("ctl00_RadWindowManager").WebEdit ("html tag:=INPUT","type:=text","name:="&val).Set ValueTOenter

    make sure that all regular expression characters like "(", ")", "[", "]", "?", "*", "+" etc in val are preceded by back slash ("\").

    - VM

 

 

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 11:39 PM.

Copyright BetaSoft Inc.