Beispiel #1
0
        public string WaitAndGetIdForNewlyOpenedWindow(WindowsHandlerData data, IUIPage page, int expectedNumbersOfOpenedWindows = 0)
        {
            WaitForNewWindowOpened(page, expectedNumbersOfOpenedWindows);

            var newPageId = GetNewWindowId(page, GetPropertyData(data));

            return(newPageId);
        }
Beispiel #2
0
 public MainFlowData()
 {
     //QuoteCreationData = new QuoteCreationData();
     //MemberData = new MemberData();
     //QuoteDetailsTabData = new QuoteDetailsTabData();
     //VesselSearchData = new VesselSearchData();
     //VesselData = new VesselData();
     //PartySearchData = new PartySearchData();
     //PartyData = new PartyData();
     CoversData         = new CoversData();
     WindowsHandlerData = new WindowsHandlerData();
     QuotePolicyData    = new QuotePolicyData();
 }
Beispiel #3
0
        private List <string> GetPropertyData(WindowsHandlerData data)
        {
            List <string> currentPropertiesValue = new List <string>();

            var propertiesNameAndValue = new List <PropertyInfo>(data.GetType().GetProperties());

            foreach (var prop in propertiesNameAndValue)
            {
                var propertyValue = prop.GetValue(data, null);

                if (prop.Name != "NumberOfCurrentlyOpenedWindows" && propertyValue != null)
                {
                    currentPropertiesValue.Add(propertyValue.ToString());
                }
            }
            return(currentPropertiesValue);
        }