SPONSORS:






View RSS Feed

agsitesh

How decide action over run time chenged object

Rate this Entry
by , 06-26-2014 at 07:42 AM (2476 Views)
I want to know framework approch through which I can decide action to be perform on object at run time .
Means if editbox convert to list, how we change action(set to select) on new object without changing script against this change.


I can identify changed object when object id is freezed for object but for deciding action I have to used select object:

Set obj1 = Description.Create()

obj1("html id").value = "Sitesh"

Set abc = Browser("title:=.*").Page("title:=.*").ChildObject s(obj1)

For i = 0 to abc.Count
y= abc(i).GetROProperty("micClass")
z= abc(i).GetROProperty("name")

If y= "WebCheckBox" Then
abc(i).Set "ON"

ElseIf y = "WebRadioGroup" Then
abc(i).Set "ON"

ElseIf y= "WebEdit" Then
abc(i).Set "Dinesh"

ElseIf y = "WebButton" Then
abc(i).Click
End If


Want to create robust automation script which can handle application object changes dynamically . Means if Edit box change to list in application there is no need to change automation script. Script should recognize changed object and perform necessary action on it and manual intervention not required for this
Tags: None Add / Edit Tags
Categories
Uncategorized

Comments


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.
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 07:43 AM.

Copyright BetaSoft Inc.