public string BuildElementSelector(PathSelector elementUniqueName)
        {
            var xpathSelector = $"//*[@{AttributeName}='{elementUniqueName.UiName}']";

            if (ParentSelector == null)
            {
                return(xpathSelector);
            }

            if (ParentSelector?.Index != null)
            {
                return($"{ParentSelector.ToString()}{elementUniqueName}");
            }

            return($"{ParentSelector.ToString()}{xpathSelector}");
        }
 protected SeleniumHelperBase(IWebDriver webDriver, SeleniumHelperBase parentHelper = null, PathSelector parentSelector = null)
 {
     WebDriver      = webDriver;
     ParentHelper   = parentHelper;
     ParentSelector = parentSelector;
 }
 public TestingPagePageObject(OpenQA.Selenium.IWebDriver webDriver, DotVVM.Framework.Testing.SeleniumHelpers.SeleniumHelperBase parentHelper = null, DotVVM.Framework.Testing.SeleniumHelpers.PathSelector parentSelector = null) : base(webDriver, parentHelper, parentSelector)
 {
     PerformDifficultCalculation = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.ButtonProxy(this, new PathSelector {
         UiName = "PerformDifficultCalculation", Parent = parentSelector
     });
     Customers = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.EmptyDataProxy(this, new PathSelector {
         UiName = "Customers", Parent = parentSelector
     });
     CustomersXXX = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.EmptyDataProxy(this, new PathSelector {
         UiName = "CustomersXXX", Parent = parentSelector
     });
     SelectedCustomerListBox = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.ListBoxProxy(this, new PathSelector {
         UiName = "SelectedCustomerListBox", Parent = parentSelector
     });
     Customers2 = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.GridViewProxy <Customers2GridViewPageObject>(this, new PathSelector {
         UiName = "Customers2", Parent = parentSelector
     });
     Customers3 = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.DataPagerProxy(this, new PathSelector {
         UiName = "Customers3", Parent = parentSelector
     });
     SelectedCustomer = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.ComboBoxProxy(this, new PathSelector {
         UiName = "SelectedCustomer", Parent = parentSelector
     });
 }
 public Customers2GridViewPageObject(OpenQA.Selenium.IWebDriver webDriver, DotVVM.Framework.Testing.SeleniumHelpers.SeleniumHelperBase parentHelper = null, DotVVM.Framework.Testing.SeleniumHelpers.PathSelector parentSelector = null) : base(webDriver, parentHelper, parentSelector)
 {
     Id = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.GridViewColumns.GridViewTextColumnProxy(this, new PathSelector {
         UiName = "Id", Parent = parentSelector
     });
     Name = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.GridViewColumns.GridViewTextColumnProxy(this, new PathSelector {
         UiName = "Name", Parent = parentSelector
     });
     PostalCode = new PostalCodeGridViewTemplateColumn(webDriver, this, parentSelector);
     IsChecked  = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.GridViewColumns.GridViewCheckBoxColumnProxy(this, new PathSelector {
         UiName = "IsChecked", Parent = parentSelector
     });
 }
 public PostalCodeGridViewTemplateColumn(OpenQA.Selenium.IWebDriver webDriver, DotVVM.Framework.Testing.SeleniumHelpers.SeleniumHelperBase parentHelper = null, DotVVM.Framework.Testing.SeleniumHelpers.PathSelector parentSelector = null) : base(webDriver, parentHelper, parentSelector)
 {
     PostalCode = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.TextBoxProxy(this, new PathSelector {
         UiName = "PostalCode", Parent = parentSelector
     });
     TelNumber = new DotVVM.Framework.Testing.SeleniumHelpers.Proxies.TextBoxProxy(this, new PathSelector {
         UiName = "TelNumber", Parent = parentSelector
     });
 }