示例#1
0
        public int GetNumberOfLocations()
        {
            DDL_Location.Click();
            Driver.WaitIsClickable(Panel_LocationList);
            Panel_LocationList.Click();
            Driver.WaitElementToDisappear(Panel_LocationList);

            return(LST_Locations.Count);
        }
示例#2
0
        public SCLocationPage SelectLocation(string location)
        {
            Driver.WaitIsClickable(DDL_Location);
            DDL_Location.Click();

            Driver.WaitIsClickable(Panel_LocationList);

            // Need custom wait for this
            //// Driver.JavaScript().ExecuteJavaScript(string.Format("return $('#{0}').is(':animated')", Panel_LocationList.GetAttribute("id")));

            LST_Locations.First(x => x.Text == location).Click();
            Driver.WaitElementToDisappear(Panel_LocationList);

            return(this);
        }