internal void SearchButtonClicked(SearchButton button) { _searchButton = button; ToggleSearchUI(); button.isSelected = !button.isSelected; NavigationManager.NavigateFromClick(button, null); }
internal void AdvancedSearch() { SearchProductMenu.Click(); ResidentialMenu.Click(); AirConditionersandHeatPumpsMenu.Click(); VariableSpeedMiniSplitAndMultiSplitAirConditioners.Click(); ManufacturerType.SelectByIndex(1); SearchButton.Click(); Assert.IsTrue(Utility.SearchResultsTableRowCount() > 1); Utility.DoesFileExist(); FirstResultInTheTable.Click(); try { wait.Until(Driver => Utility.DoesFileExist()); } catch (Exception) { Assert.Fail("Unable to download the file"); } }
public void SearchCompetency_AllTypes() { string compName = CreateCompetency("Active", true); SearchCompetency(compName); KeywordsTextBox.Clear(); KeywordsTextBox.SendKeys(DateTime.Now.ToString()); SearchButton.Click(); Thread.Sleep(3000); Assert.IsTrue(NoListRecordsFound.Displayed, "Search for a Non-Existent Competency was unsuccessful"); ExtentReport.test.Log(LogStatus.Pass, "Search for a Non-Existent Competency was successful"); KeywordsTextBox.Clear(); KeywordsTextBox.SendKeys(""); SearchButton.Click(); Thread.Sleep(3000); ExtentReport.test.Log(LogStatus.Pass, "Blank Search in the Competency List was successful"); }
private void ToggleSearchBar(object sender, EventArgs e) { if (!_isSearchBarOpen) { btnSearchArticles.Text = ""; OpenSearchBox(); _isSearchBarOpen = true; btnSearchArticles.Focus(); } else { CloseSearchBox(); _isSearchBarOpen = false; SearchButton.Unfocus(); } }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = LocalizedStrings.CitySelectTitle; theme.StyleTextField(SearchTextField); SearchTextField.Placeholder = LocalizedStrings.SearchTextFieldPlaceholder; theme.StyleActionButton(SearchButton); SearchButton.SetTitle(LocalizedStrings.SearchButtonTitle, UIControlState.Normal); SearchButton.SetCommand(ViewModel.SearchCommand); _bindings = new object[] { this.SetBinding(() => ViewModel.SearchText, () => SearchTextField.Text, BindingMode.TwoWay), this.SetBinding(() => ViewModel.IsLoading, () => IconImageView.IsRotating, BindingMode.OneWay) }; // prepare for initial for animation SearchButton.Hidden = true; SearchTextField.Hidden = true; }
public Plate_Window() { InitializeComponent(); timer_PlateLink = new System.Threading.Timer(PlateTimeLink, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(10)); OnLineLable.BackColor = Color.DarkRed; Plate_.PlateCallBack = new Action <string, uint>(PlateCallBack); PlateStar += Plate_.CallbackFuntion; Plate_.GetmessageAction = new Action <string>(Message); Plate_.PlateDataCallBack = new Action <string, string, string, string>(PlateDataInfoOut); Plate_.JpegCallBack = new Action <byte[]>(JpegCallBack); Plate_.DataJpegCallBack = new Action <byte[]>(DataJpeg); setRelayClose += Plate_.SetRelayClose; PlateSettiger += Plate_.SetTrigger; PlateQuitDevice += Plate_.QuitDevice; PlayAction = new Action <bool>(Plate_.Play); Send485Action = new Action <string>(Plate_.RS485Send); SetIpAction = new Action <string>(Plate_.SetIpNetwork); SetSaveImg = new Action <string>(Plate_.SetSavrImagePath); PlateSearchDevice += Plate_.SearchDeviceList; PlateIpTextBox.Text = Properties.Settings.Default.PlateIPAddr; PlatePortTextBox.Text = Properties.Settings.Default.PlatePort.ToString(); PlateSetIp(); PlateSetPath(); LinkButton.Hide(); AbortButton.Hide(); TiggerButton.Hide(); LinkButton.Hide(); LiftingButton.Hide(); TransmissionButton.Hide(); SearchButton.Hide(); SetIpButton.Hide(); SetPathButton.Hide(); OpenButton.Hide(); CloseButton.Hide(); OnLineLable.Hide(); }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (EndDateTextField != null) { EndDateTextField.Dispose(); EndDateTextField = null; } if (SearchButton != null) { SearchButton.Dispose(); SearchButton = null; } if (StartDateTextField != null) { StartDateTextField.Dispose(); StartDateTextField = null; } if (TodayButton != null) { TodayButton.Dispose(); TodayButton = null; } if (YesterdaySummaryButton != null) { YesterdaySummaryButton.Dispose(); YesterdaySummaryButton = null; } }
void ReleaseDesignerOutlets() { if (QueryStringTextField != null) { QueryStringTextField.Dispose(); QueryStringTextField = null; } if (SearchButton != null) { SearchButton.Dispose(); SearchButton = null; } if (WeatherTitleTextField != null) { WeatherTitleTextField.Dispose(); WeatherTitleTextField = null; } if (WeatherTemperatureTextField != null) { WeatherTemperatureTextField.Dispose(); WeatherTemperatureTextField = null; } if (ViewWeatherDetailButton != null) { ViewWeatherDetailButton.Dispose(); ViewWeatherDetailButton = null; } if (WeatherSummaryStackView != null) { WeatherSummaryStackView.Dispose(); WeatherSummaryStackView = null; } }
internal void Search_skill() { //Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SearchSkill"); GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='account-profile-section']/div/div[1]/div[1]/input", 10000); SearchButton.Click(); SearchButton.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "SearchSkill")); //SearchButton.SendKeys("selenium with java"); //Enter search skill GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='account-profile-section']/div/div[1]/div[1]/i", 10000); ClickSkill.Click(); // search skill catagory GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='service-search-section']/div[2]/div/section/div/div[1]/div[2]/input", 10000); searchSkill.Click(); searchSkill.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "SearchSkillCategory")); //searchSkill.SendKeys("Programming $ Tech"); //Click search skill GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='service-search-section']/div[2]/div/section/div/div[1]/div[2]/i", 10000); ClickSearckSkill.Click(); //Search user GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='service-search-section']/div[2]/div/section/div/div[1]/div[3]/div[1]/div/div[1]/input", 10000); SearchUser.Click(); SearchUser.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "UserName")); //SearchUser.SendKeys("zorawar badhan"); Thread.Sleep(2000); //click Search user GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='service-search-section']/div[2]/div/section/div/div[1]/div[3]/div[1]/div/div[2]/div[1]/div/span", 10000); ClickSearchUser.Click(); Thread.Sleep(2000); Base.test.Log(LogStatus.Info, "Skill search is successfull"); }
public ProductInfo SearchDocument(string input) { var productInfo = new ProductInfo(); if (string.IsNullOrEmpty(input)) { return(productInfo); } SearchBox.SendKeys(input); SearchButton.Click(); var result = Browser.FindElement(By.XPath($"//div[contains(@class, 'catalogItemFooter')]//a[contains(@title, '{input}')]")); string href = result?.GetAttribute("href"); int hash = href.LastIndexOf('=') + 1; string productId = href.Substring(hash, href.Length - hash); productInfo.Id = productId; productInfo.Name = result?.Text; return(productInfo); }
void ReleaseDesignerOutlets() { if (SearchBar != null) { SearchBar.Dispose(); SearchBar = null; } if (SearchButton != null) { SearchButton.Dispose(); SearchButton = null; } if (SearchResults != null) { SearchResults.Dispose(); SearchResults = null; } if (SearchText != null) { SearchText.Dispose(); SearchText = null; } }
private void FavouritePictureBox_Click(object sender, EventArgs e) { if (CocktailsListBox.SelectedItems.Count > 0) { Favourite = !Favourite; var select = CocktailsListBox.SelectedValue; DataAccess.FavouriteCocktail(select.ToString(), Favourite); SearchButton.PerformClick(); if (FavouriteCheckBox.Checked) { ClearTextBoxes(); } else { CocktailsListBox.SelectedValue = select; } SwitchFavouriteImage(); } }
/// <summary> /// search the property /// </summary> internal void SearchAProperty() { try { //Calling the common methods //Enter the value in the search bar SearchBar.SendKeys("Morgan"); //Click on the search button SearchButton.Click(); string ExpectedValue = "Morgan"; string ActualValue = Driver.driver .FindElement( By.XPath( "/html[1]/body[1]/div[2]/div[1]/div[1]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/a[1]/h3[1]")) .Text; //Assert.AreEqual(ExpectedValue, ActualValue); if (ExpectedValue == ActualValue) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Test Passed, Search successfull"); } else { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Test Failed, Search Unsuccessfull"); } } catch (Exception e) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Test Failed, Search Unsuccessfull", e.Message); } }
internal void SearchAProperty() { try { //Calling the common methods Common_methods(); Driver.wait(5); //Enter the value in the search bar SearchBar.SendKeys("TestingProperty"); Global.Driver.wait(5); //Click on the search button SearchButton.Click(); Driver.wait(5); string ExpectedValue = "TestingProperty"; string ActualValue = Global.Driver.driver.FindElement(By.XPath("//*[@id='mainPage']/div[4]/div[1]/div/div/div[2]/div[2]/div[1]/div[1]/div[1]")).Text; //Assert.AreEqual(ExpectedValue, ActualValue); if (ExpectedValue == ActualValue) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Test Passed, Search successfull"); } else { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Test Failed, Search Unsuccessfull"); } } catch (Exception e) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Test Failed, Search Unsuccessfull", e.Message); } }
private void ResearcherDeleteButtonOnClick(object sender, RoutedEventArgs e) { Button button = sender as Button; var researcherToDelete = unitOfWork.Researchers.Get((int)button.Tag); string message = "Ви впевнені що хочете видалити дані про викладача " + researcherToDelete.LastName + " " + researcherToDelete.FirstName + " " + researcherToDelete.MiddleName + "?"; DialogWindow dialogWindow = new DialogWindow(message); bool? dialogResult = dialogWindow.ShowDialog(); if (dialogResult != true) { return; } unitOfWork.Researchers.Delete(researcherToDelete.ResearcherId); unitOfWork.Save(); SearchButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); }
public void ClickSearchButton() { SearchButton.Click(); }
public FlightOfferPage InputValueInTheSearchBarWithoutArrivalCity(IWebDriver Driver) { SearchButton.Click(); return(new FlightOfferPage(Driver)); }
private void LobbyBrowser_OnUpdate() { GameList.data.Clear(); CancelImageLoading(); if (!String.IsNullOrEmpty(HostedGameBrowser.ServerMessage)) { ServerMessageText.text = HostedGameBrowser.ServerMessage; ServerMessageText.enabled = true; } else { ServerMessageText.enabled = false; } if (!HostedGameBrowser.ConnectionOk) { StatusText.text = "Failed to get server list"; StatusText.color = Color.red; } else if (!HostedGameBrowser.AnyResultsOnPage) { if (HostedGameBrowser.TotalResultCount == 0) { if (IsSearching) { StatusText.text = "No servers found matching your search"; } else { StatusText.text = "Sorry, no servers found"; } } else { StatusText.text = "This page is empty"; RefreshButtonClick(); // this is awkward so force a refresh } StatusText.color = Color.red; } else { StatusText.text = $"Found {HostedGameBrowser.TotalResultCount} " + (HostedGameBrowser.TotalResultCount == 1 ? "server" : "servers") + $" (Page {HostedGameBrowser.PageIndex + 1} of {HostedGameBrowser.TotalPageCount})"; StatusText.color = Color.green; if (IsSearching) { StatusText.text += " (Filtered)"; } foreach (var lobby in HostedGameBrowser.LobbiesOnPage) { GameList.data.Add(new HostedGameCellData(_imageLoadCancellation, CellUpdateCallback, lobby)); } } if (!MpSession.GetLocalPlayerHasMultiplayerExtensions()) { StatusText.text += "\r\nMultiplayerExtensions not detected, hiding modded games"; StatusText.color = Color.yellow; FilterModdedButton.interactable = false; } AfterCellsCreated(); RefreshButton.interactable = true; SearchButton.interactable = (IsSearching || HostedGameBrowser.AnyResultsOnPage); SearchButton.SetButtonText(IsSearching ? "<color=#32CD32>Search</color>" : "Search"); PageUpButton.interactable = HostedGameBrowser.PageIndex > 0; PageDownButton.interactable = HostedGameBrowser.PageIndex < HostedGameBrowser.TotalPageCount - 1; }
public MainPage ClickSearchButton() { SearchButton.Click(); return(this); }
public Amazon SearchForProduct(string productName) { SearchBox.SetText(productName); SearchButton.Click(); return(this); }
public void RegisterSearch(SearchButton searchButton) { this._searchButton = searchButton; }
public bool FindWithoutDestination() { SearchButton.Click(); return(ErrorTextDestinationOrigin.Displayed); }
public void For(string searchFor) { SearchField.SendKeys(searchFor); SearchButton.Click(); }
private void LaderTypeGridView_DoubleClick(object sender, EventArgs e) { SearchButton.PerformClick(); }
public void SearchArticle(string newsTitle) { SearchField.Click(); SearchField.SendKeys(newsTitle); SearchButton.Click(); }
public Search ClickSearchButton() { SearchButton.Click(); return(this); }
public void Save(TextBlock block) { block.SetAttribute(nameof(PanelMode), PanelMode.ToString()); if (ListMode != ContentBrowser.ListModeEnum.List) { block.SetAttribute(nameof(ListMode), ListMode.ToString()); } if (TileImageSize != TileImageSizeDefault) { block.SetAttribute(nameof(TileImageSize), TileImageSize.ToString()); } if (ListImageSize != ListImageSizeDefault) { block.SetAttribute(nameof(ListImageSize), ListImageSize.ToString()); } if (ListColumnWidth != ListColumnWidthDefault) { block.SetAttribute(nameof(ListColumnWidth), ListColumnWidth.ToString()); } if (!Breadcrumb) { block.SetAttribute(nameof(Breadcrumb), Breadcrumb.ToString()); } if (DisplayPropertiesSortFilesBy) { if (SortFilesBy != ContentBrowser.SortByItems.Name) { block.SetAttribute(nameof(SortFilesBy), SortFilesBy.ToString()); } if (!SortFilesByAscending) { block.SetAttribute(nameof(SortFilesByAscending), SortFilesByAscending.ToString()); } } if (owner.Mode == ContentBrowser.ModeEnum.Resources) { if (!FilteringModeButton) { block.SetAttribute(nameof(FilteringModeButton), FilteringModeButton.ToString()); } } if (owner.Mode == ContentBrowser.ModeEnum.Objects) { if (!MembersButton) { block.SetAttribute(nameof(MembersButton), MembersButton.ToString()); } } if (DisplayPropertiesOpenButton) { if (!OpenButton) { block.SetAttribute(nameof(OpenButton), OpenButton.ToString()); } } if (DisplayPropertiesEditorSettingsButtons) { if (!EditorButton) { block.SetAttribute(nameof(EditorButton), EditorButton.ToString()); } if (!SettingsButton) { block.SetAttribute(nameof(SettingsButton), SettingsButton.ToString()); } } if (!ButtonsForEditing) { block.SetAttribute(nameof(ButtonsForEditing), ButtonsForEditing.ToString()); } if (owner.Mode == ContentBrowser.ModeEnum.Objects) { if (!SearchButton) { block.SetAttribute(nameof(SearchButton), SearchButton.ToString()); } } //!!!! if (!SearchBar) { block.SetAttribute(nameof(SearchBar), SearchBar.ToString()); } block.SetAttribute(nameof(SplitterPosition), SplitterPosition.ToString()); }
public void Search(string searchdata) { SearchData.SendKeys(searchdata); SearchButton.Click(); }
/// <summary> /// Click on button Search /// </summary> /// <returns></returns> public PageResultSearch ClickBtnSearch() { SearchButton.Click(); return(new PageResultSearch()); }
/// <summary> /// Make a shadow copy of the element at the current state which stays available even the element is gone. /// </summary> /// <returns>A shadow copy of the current element.</returns> public new BasicOpenFileDialogData GetDataCopy() { var data = new BasicOpenFileDialogData(); FillData(data); data.InputComboBox = GetSafeData(() => { if (InputComboBox == null) { return(null); } return(InputComboBox.GetDataCopy()); }); data.BreadCrumbBar = GetSafeData(() => { if (BreadCrumbBar == null) { return(null); } return(BreadCrumbBar.GetDataCopy()); }); data.BreadCrumbTextBox = GetSafeData(() => { if (BreadCrumbTextBox == null) { return(null); } return(BreadCrumbTextBox.GetDataCopy()); }); data.FilterComboBox = GetSafeData(() => { if (FilterComboBox == null) { return(null); } return(FilterComboBox.GetDataCopy()); }); data.CancelButton = GetSafeData(() => { if (CancelButton == null) { return(null); } return(CancelButton.GetDataCopy()); }); data.OpenButton = GetSafeData(() => { if (OpenButton == null) { return(null); } return(OpenButton.GetDataCopy()); }); data.FilesList = GetSafeData(() => { if (FilesList == null) { return(null); } return(FilesList.GetDataCopy()); }); data.SearchTextBox = GetSafeData(() => { if (SearchTextBox == null) { return(null); } return(SearchTextBox.GetDataCopy()); }); data.SearchButton = GetSafeData(() => { if (SearchButton == null) { return(null); } return(SearchButton.GetDataCopy()); }); data.FolderTree = GetSafeData(() => { if (FolderTree == null) { return(null); } return(FolderTree.GetDataCopy()); }); data.ToolBar = GetSafeData(() => { if (ToolBar == null) { return(null); } return(ToolBar.GetDataCopy()); }); data.ChangeViewButton = GetSafeData(() => { if (ChangeViewButton == null) { return(null); } return(ChangeViewButton.GetDataCopy()); }); data.ShowPreviewButton = GetSafeData(() => { if (ShowPreviewButton == null) { return(null); } return(ShowPreviewButton.GetDataCopy()); }); data.HelpButton = GetSafeData(() => { if (HelpButton == null) { return(null); } return(HelpButton.GetDataCopy()); }); return(data); }
void ReleaseDesignerOutlets() { if (BtnAdd != null) { BtnAdd.Dispose(); BtnAdd = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } if (DomainComboBox != null) { DomainComboBox.Dispose(); DomainComboBox = null; } if (GroupsTableView != null) { GroupsTableView.Dispose(); GroupsTableView = null; } if (MainTableView != null) { MainTableView.Dispose(); MainTableView = null; } if (MemberTypeComboBox != null) { MemberTypeComboBox.Dispose(); MemberTypeComboBox = null; } if (NameTextString != null) { NameTextString.Dispose(); NameTextString = null; } if (SearchButton != null) { SearchButton.Dispose(); SearchButton = null; } if (WarningLabel != null) { WarningLabel.Dispose(); WarningLabel = null; } if (MemberTypeLabel != null) { MemberTypeLabel.Dispose(); MemberTypeLabel = null; } if (DomainLabel != null) { DomainLabel.Dispose(); DomainLabel = null; } }
public void SearchFor(string q) { SearchBox.Type(q); SearchButton.Click(5); }