Former HPE Products
cancel
Showing results for 
Search instead for 
Did you mean: 

UFT help

 
MoAhmed
Occasional Contributor

UFT help

Hi all,

I'm trying to create a function to upload my Resume where UFT will click on the 'Select Resume' link and choose the file from an external forlder, titled 'Myresume'. So far, I got this far:

Function fnClickWebElement (Prop_HtmlID,Prop_HtmlTag,Prop_InnerText)
    Dim oWebElement
    Set oWebElement = Description.Create
    oWebElement("HtmilID").Value = Prop_HtmlID
    oWebElement("HtmlTag").Value = Prop_HtmlTag
    oWebElement("Innertext").Value = Prop_InnerText
    MyBrowser.WebElement(oWebElement).Click  'this opens an external folder containing the Resume.doc file, and I'm stuck here!

End Function

Do I use the 'FileSystem' method or some scripting would do the trick? I'm more for scripting, although I don't know how to do that.

Your help is very much appreciated.

Thanks a lot.

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: MF UFT help

GoScriptLESS
Occasional Advisor

Re: UFT help

can you set it to childobjects and then find if you are having one or more child objects. Looks like you are not able to uniquely identify the object with provided information. 

Set WEChildObs = Browser("B").WebElement(oWebElement)

WECount = WEChildObs.count

if you have more than one or 0, then you will have to refine your description. 

SATeam

GoScripLESS. Create tests in seconds, using scriptless addin from SA.