コード例 #1
0
        void OnTappedImgMyProfile(object sender, EventArgs args)
        {
            var myProfilePage = new MyProfilePage();

            Navigation.PopAsync(true);
            Navigation.PushAsync(myProfilePage);
        }
コード例 #2
0
        public void RunTest()
        {
            HomePage home = new HomePage(driver);

            home.SignIn();
            Thread.Sleep(4000);
            LoginPage login = new LoginPage(driver);

            Thread.Sleep(4000);
            login.LogIn("*****@*****.**", "admin1234");
            Thread.Sleep(4000);
            home.Search("Samsung");
            Thread.Sleep(4000);
            home.ChangePage();
            Thread.Sleep(4000);
            ProductPage product = new ProductPage(driver);

            product.AddtoMyFavorites();
            MyProfilePage myProfile = new MyProfilePage(driver);

            myProfile.MyProfile();
            Thread.Sleep(4000);
            myProfile.MyFavorites();
            Thread.Sleep(4000);
            myProfile.RemoveFav();
            Assert.Pass();
        }
コード例 #3
0
ファイル: Events.cs プロジェクト: mhakimov/energy
        public void Start()
        {
            HomePage   homePage   = new HomePage(driver);
            SignInPage signInPage = homePage.NavigateToSignInPage();

            signInPage.TypeTextInEmailAddressTxf(Methods.SelectRandomElement(_emails));
            signInPage.TypeTextInPasswordTxf(_password);
            _myProfilePage = signInPage.NavigateToMyProfilePage();
        }
コード例 #4
0
        private async void EditList_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            var Item = e.Item as EditItems;

            if (Item.Label == AppResources.Label_Edit_Profile)
            {
                MyProfilePage GeneralPage = new MyProfilePage();
                await Navigation.PushAsync(GeneralPage);
            }
        }
コード例 #5
0
        public void Start()
        {
            _user = Methods.SelectRandomElement(_emails);
            HomePage   homePage   = new HomePage(driver);
            SignInPage signInPage = homePage.NavigateToSignInPage();

            signInPage.TypeTextInEmailAddressTxf(_user);
            signInPage.TypeTextInPasswordTxf(_password);
            _myProfilePage = signInPage.NavigateToMyProfilePage();
            OnlineApplicationsPage onlineApplicationsPage = _myProfilePage.NavigateToOnlineApplicationsPage();

            _increaseCapacityPage = onlineApplicationsPage.NavigateToIncreaseCapacityPage();
        }
コード例 #6
0
 public void UnmeteredConnection_01_DistributedGeneration()
 {
     UiTest(() =>
     {
         _unmeteredConnectionPage = _unmeteredSuppliesPage.NavigateToUnmeteredConnectionPage();
         _unmeteredConnectionPage.FillInPostcodeCheckForm();
         _unmeteredConnectionPage.FillInSiteAddressForm();
         _unmeteredConnectionPage.FillInCorrespondenceAddressForm();
         _unmeteredConnectionPage.FillInCustomerDetailsForm();
         _unmeteredConnectionPage.FillInSiteContactDetailsForm();
         _unmeteredConnectionPage.FillInGeneralRequirementsForm("1", "5", "2", "3");
         _unmeteredConnectionPage.FillInSupportingDocumentsForm();
         _unmeteredConnectionPage.FillInSummaryForm();
         _myProfilePage = _unmeteredConnectionPage.ClickFinishBtn();
         Assert.That(_myProfilePage.MakeApplicationBtn.Displayed);
     });
 }
コード例 #7
0
        public void TestSignIn()
        {
            //Verify input SignInData
            Assert.IsNotNull(testData, "TestData Load Failed");
            SignInData signInData = testData.GetTestData("TestSignIn");

            // Perform Sign In
            PerformSignIn(signInData);

            //Verify SignInSuccessPage is loaded
            SignInSuccessPage signInSuccessPage = new SignInSuccessPage(driver);

            Assert.IsTrue(signInSuccessPage.VerifyPage(), "SignInSuccessPage VerifyPage() FAILED");
            Assert.IsTrue(signInSuccessPage.ClickMyAccount(), "SignInSuccessPage ClickMyAccount() FAILED");

            // Verify profile email
            MyProfilePage myProfilePage = new MyProfilePage(driver);

            Assert.IsTrue(myProfilePage.VerifyPage(), "MyProfilePage VerifyPage() FAILED");
            Assert.IsTrue(myProfilePage.VerifyMyProfileEmail(signInData.userName), "MyProfliPage VerifyProfilePage() FAILED");
        }
コード例 #8
0
        public MainTabbedPage()
        {
            App.MainTabbedPage = this;

            On <Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);

            On <Android>().SetIsSwipePagingEnabled(false);
            BarBackgroundColor = Color.WhiteSmoke;

            On <Android>().SetBarItemColor(Color.Gray);
            On <Android>().SetBarSelectedItemColor(Color.Orange);

            BarBackgroundColor = Color.White;
            BarTextColor       = Color.FromHex("#666666");

            var page1 = new NavigationPage(new RecentPostsPage()
            {
                Icon = new FileImageSource()
                {
                    File = "home1.png"
                },
                //Title = "Home"
            })
            {
                BarTextColor = Color.White,
                Icon         = new FileImageSource()
                {
                    File = "home1.png"
                },
                //Title = "Home"
            };

            var page2 = new NavigationPage(new CurrentlyAtPage())
            {
                Icon = new FileImageSource()
                {
                    File = "wallet.png"
                },
                //Title = "Wallet"
            };

            var page3 = new NavigationPage(new ExplorePage())
            {
                Icon = new FileImageSource()
                {
                    File = "explore.png"
                },
                //Title = "Explore"
            };

            var page4 = new NavigationPage(new MessagePage())
            {
                Icon = new FileImageSource()
                {
                    File = "folder.png"
                },
                //Title = "Messages"
            };

            var page5 = new NavigationPage(new MyBookingsPage())
            {
                Icon = new FileImageSource()
                {
                    File = "profile.png"
                },
                //Title = "Feed"
            };

            var page6 = new MyProfilePage()
            {
                Icon = new FileImageSource()
                {
                    File = "feed.png"
                },
                //Title = "Profile"
            };

            Children.Add(page1);
            //Children.Add(page2);
            Children.Add(page3);
            Children.Add(page4);
            Children.Add(page5);
            Children.Add(page6);
        }
コード例 #9
0
        public MainTabbedPage()
        {
            App.MainTabbedPage = this;

            BarBackgroundColor = Color.White;
            TabNormalColor     = Color.Gray;
            TabActiveColor     = Color.Orange;
            BarTextColor       = Color.FromHex("#666666");
            FixedMode          = true;

            var page1 = new NavigationPage(new RecentPostsPage()
            {
                Icon = new FileImageSource()
                {
                    File = "home1.png"
                },
                Title = "Home"
            })
            {
                BarTextColor = Color.White,
                Icon         = new FileImageSource()
                {
                    File = "home1.png"
                },
                Title = "Home"
            };

            var page2 = new NavigationPage(new CurrentlyAtPage())
            {
                Icon = new FileImageSource()
                {
                    File = "wallet.png"
                },
                Title = "Wallet"
            };

            var page3 = new NavigationPage(new ExplorePage())
            {
                Icon = new FileImageSource()
                {
                    File = "explore.png"
                },
                Title = "Explore"
            };

            var page4 = new NavigationPage(new MessagePage())
            {
                Icon = new FileImageSource()
                {
                    File = "folder.png"
                },
                Title = "Messages"
            };

            var page5 = new NavigationPage(new MyBookingsPage())
            {
                Icon = new FileImageSource()
                {
                    File = "profile.png"
                },
                Title = "Feed"
            };

            var page6 = new MyProfilePage()
            {
                Icon = new FileImageSource()
                {
                    File = "feed.png"
                },
                Title = "Profile"
            };

            Children.Add(page1);
            Children.Add(page2);
            Children.Add(page3);
            Children.Add(page4);
            Children.Add(page5);
            Children.Add(page6);
        }