Code:
var verlbl = openbr.page.FindChildByXPath("//div[3]/table/tbody[1]/tr[1]/td[2]/div/input", true);
var vlbl = Driver.Value(9).toString();
var finalvlbl = (vlbl+Math.floor((Math.random()*100)+1));
verlbl.Keys(finalvlbl);
var str1 = "NA";
var str3 = Driver.Value(10);
if(str1.valueOf() == str3.valueOf())
{
Log.Message("Release status is not provided to add");
}
else
{
//var rlsdropdown = openbr.page.FindChildByXPath("//div[3]/div[2]/div[1]/div[3]/div/div/div/div[3]/div/div[3]/table/tbody[1]/tr[1]/td[2]/div/span/input",true);
var prop2 = Array("ObjectType","Height");
var val2 = Array("Textbox","24");
var rlsdropdown = openbr.page.FindChild(prop2,val2,30);
//Sys.HighlightObject(rlsdropdown);
rlsdropdown.Click();
var prop1 = Array("ObjectType","contentText");
var val1 = Array("TextNode",str3);
var releasestatus = openbr.page.FindChild(prop1,val1,20);
releasestatus.Click();
}
// insert value in text box
var remarks = openbr.page.FindChildByXPath("//div[3]/div[2]/div[1]/div[3]/div/div/div/div[3]/div/div[3]/table/tbody[1]/tr[2]/td[2]/div/textarea",true);
remarks.Keys("^a");
remarks.Keys("[Del]");
remarks.Keys(Driver.Value(11));
/*var prop3 = Array("ObjectType","sourceIndex");
var val3 = Array("Textarea","408");
var remarks = openbr.page.FindChild(prop3,val3,20);
remarks.Keys(Driver.Value(11));*/
var swappln = openbr.page.FindChildByXPath("//div[3]/div[2]/div[1]/div[3]/div/div/div/div[3]/div/div[3]/table/tbody[1]/tr[4]/td[2]/div/textarea",true);
swappln.Keys("^a");
swappln.Keys("[Del]");
swappln.Keys(Driver.Value(12));
/* var prop4 = Array("ObjectType","sourceIndex");
var val4 = Array("Textarea","416");
var swappln = openbr.page.FindChild(prop4,val4,20);
swappln.Keys(Driver.Value(12));*/
var props = Array("tagName", "contentText");
var values = Array("button", "Ok");
var link2 = openbr.page.FindChild(props, values, 10);
if(link2.Exists)
link2.Click();
openbr.page.Wait(); Delay(2000);
Please find attached screenshot for object browser properties.