04-17-2014, 05:34 PM
Hi All,
I am automating the RTC 4.0.5 workitem creation using QTP.
Issue is now all the weblist is converted to the webelement.
I need a way to select a value from the dropdown of the webelement.
I tried with the small command to change the innertext of the attribute using :-
But after saving the attribute value is not retained, then I tried using:-
For first selection it is working, but if I want to change the selected value then it is not working.
I tried with the WebTable too but none helped.
Please suggest me solution ASAP.
Thanks,
Pooja
I am automating the RTC 4.0.5 workitem creation using QTP.
Issue is now all the weblist is converted to the webelement.
I need a way to select a value from the dropdown of the webelement.
I tried with the small command to change the innertext of the attribute using :-
Code:
Set objWebElement = Browser("name:="&BrowserProperty).Page("title:="&BrowserProperty).WebElement("class:=ValueHolder ViewBorder","Index:=6")
objWebElement.Object.innertext = attribute vale
But after saving the attribute value is not retained, then I tried using:-
Code:
Browser("name:="&BrowserProperty).Page("title:="&BrowserProperty).WebElement("innertext:=unassigned","Index:=21").click
set wshShell = CreateObject("WScript.Shell")
wait 5
wshShell.SendKeys "{DOWN}"
wshShell.SendKeys "{DOWN}"
wshShell.SendKeys "{ENTER}"
wshShell.SendKeys "{TAB}"
For first selection it is working, but if I want to change the selected value then it is not working.
I tried with the WebTable too but none helped.
Please suggest me solution ASAP.
Thanks,
Pooja