i want to automate page using web browser automation.
In the there is only an iframe at runtime value comes to that iframe.
when i try get the value of i frame it returns only the iframe not whole page html,
I want to click a href of i frame.
Please help me to solve this problem I am code.
HtmlDocument dd = (HtmlDocument)loginBrowser.Document.GetElementById("UIFrame");
Try
I have no idea of c# and what you are doing (I’m a PHP man mainly these days) but it looks to me like you are casting an IFrame element to a HTMLDocument type? This may be wrong, as the IFrame element is not identical with the
body. Is that casting really necessary? Maybe cast it to a HTMLElement instead?