internal void BalanceHidden()
{
if (!IsBalanceHidden.Selected)
{
ViewBalanceCheckbox.Click();
WaitElementIsVisible(By.CssSelector(".view-balance__sum.account-widget__balance-sum.m-bonus.m-hidden"));
}
}
<input ajax-action="/account/profile/edit/togglebalancevisibility" class="checkbox__input" id="isBalanceHidden" name="isBalanceHidden" type="checkbox" value="true" ajax-action-installed="true">
new WebDriverWait(driver, 2000)).until(new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver driver) {
JavascriptExecutor js = (JavascriptExecutor) driver;
return (Boolean) js.executeScript("return jQuery.active == 0");
}
};
public void SectionExpandFromCloseTree(string domainName, string ruNameBranch, string ruNameSection)
{
OpenTabEvents();
if (DomainExpanding(domainName, elementId, treePanelName))
ReopenTabEvents();
Manager.Branches.BranchDomainExpand(domainName, ruNameBranch);
SectionExpandFromBranch(domainName, ruNameBranch, ruNameSection);
}
public void SectionExpandFromCloseTree(string domainName, string ruNameBranch, string ruNameSection)
{
OpenTabEvents();
if (DomainExpanding(domainName, elementId, treePanelName))
//ReopenTabEvents();
Manager.Branches.BranchDomainExpand(domainName, ruNameBranch);
SectionExpandFromBranch(domainName, ruNameBranch, ruNameSection);
}
CacheRequest comboCacheRequest1;
public void RefreshMethod(AutomationElement element)
{
comboCacheRequest1 = new CacheRequest();
comboCacheRequest1.Add(SelectionPattern.Pattern);
comboCacheRequest1.Add(SelectionPattern.SelectionProperty);
comboCacheRequest1.Add(AutomationElement.NameProperty);
comboCacheRequest1.TreeScope = TreeScope.Element | TreeScope.Descendants;
element.GetUpdatedCache(comboCacheRequest1);
}
2. Хотелось попробовать использовать именно c#, тяжело мне дается xaml, да и в принципе ради интереса.
3. Жаль что ответ на мой вопрос не очевиден.