or
Bug tracking advanced settings pop-up hiding from view on New
R1-2012.
Please see attached sample video.
Thanks,
Madhu.
Pages.MyPage.MyFrame.MyListBox.SelectByText(
CType
(System.Convert.ChangeType(Data(
"MyField"
),
GetType
(
String
)),
String
), true)
Pages.MyPage.MyFrame.MyListBox.SelectByText(
"XXXXX"
, true)
[CodedStep(
"Copy and convert Contact URL"
)]
public
string
Copy_ContactURL()
{
// Copy URL of current Contact
string
contactURL = ActiveBrowser.Url.ToString();
// Convert URL
var nameValueCollection = HttpUtility.ParseQueryString(contactURL);
string
[] paramArray = {
"preloadcache"
,
"pagemode"
,
"rof"
,
"extraqs"
};
for
(
int
i = 0; i < paramArray.Length; i++)
{
nameValueCollection.Remove(paramArray[i]);
}
contactURL = HttpUtility.UrlDecode(nameValueCollection.ToString());
return
contactURL;
}
......
[CodedStep(
"Open Contact"
)]
public
void
OpenContact(
string
contactURL)
{
ActiveBrowser.NavigateTo(contactURL);
}
HtmlAnchor a = ActiveBrowser.Find.ByContent<HtmlAnchor>(Data[
"WorkItem"
].ToString());
if
(a !=
null
)
{
Log.WriteLine(
"Found - "
+ a);
}
else
{
Log.WriteLine(
"Not found"
);
}