public class Button { public RadButton Control; public Button() { } public Button(string automationId) { AutomationId = automationId; Control = Manager.Current.ActiveBrowser.SilverlightApps()[0].Find.ByAutomationId<RadButton>(automationId); } public string AutomationId { get; set; } public void Click() { this.Control.User.Click(); }....}objParent.Find.ByName("txtName").TextContent Output : "" (Empty String) objParent.Find.ByName<TextBox>("txtName").Text Output : String Value Settings.Current.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndFailTest;
manager.DialogMonitor.Start();
// Attempted to check if the line below captures the dialog
int counter= manager.DialogMonitor.Dialogs.Count;
//This actually adds a dialog --- not what is needed
manager.DialogMonitor.AddDialog(new AlertDialog(manager.ActiveBrowser,DialogButton.OK));
Any help appreciated
I have the DOM for a button in the below fashion
<input name="TestButton" class="action-button" id="TestButton" role="button" type="submit" jQuery15109470652432947769="3" value="Test"/>
Im getting the HTMLInputSubmit control by Findexpression (id="TestButton")
If i perform Click Action it is not working.
Tried HTMLInputSubmit.MouseClick and it works in my local machine
And in my test run, which triggers this in remote machines, this fails to perform MouseClick action.
also tried InvokeScript(JqueryScripts.ClickbyID() with script event type set to OnClick - Not Working
Anybody can shed some light on this ??