I have one custom button(Ribbon button) in my entity, on click of that button need to set some value(from test case), after enter value need to click Ok button automatically.
Note: It's prompt alert box.
xrmApp.CommandBar.ClickCommand("Search Account");------> from this I am able to click button, but with in 1sec closing automatically.
client.Browser.Driver.SwitchTo().Alert().SendKeys("1234567");----> from this trying to set value, but not working.
client.Browser.Driver.SwitchTo().Alert().Accept();---> working fine, like clicking Ok automatically even value is not there,
Hi Team,
I have one custom button(Ribbon button) in my entity, on click of that button need to set some value(from test case), after enter value need to click Ok button automatically.
Note: It's prompt alert box.
xrmApp.CommandBar.ClickCommand("Search Account");------> from this I am able to click button, but with in 1sec closing automatically.
client.Browser.Driver.SwitchTo().Alert().SendKeys("1234567");----> from this trying to set value, but not working.
client.Browser.Driver.SwitchTo().Alert().Accept();---> working fine, like clicking Ok automatically even value is not there,