internal void DeleteCertification()

        {
            Commondriver.Wait(10);
            DeleteCertificateIconlastRow.Click();
            Thread.Sleep(1000);
        }
예제 #2
0
        internal void NavigateToEducationTab()
        {
            //Navigate to Education Tab
            Commondriver.Wait(10);

            EducationTab.Click();
        }
        internal void EditCertification()

        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Certification");

            Commondriver.Wait(10);
            EditCertificateIconlastRow.Click();

            Thread.Sleep(1000);


            CertificatevalueEdit.Clear();

            CertificatevalueEdit.SendKeys(Commondriver.Excellib.ReadData(3, "Certificate"));

            CertificateFromEdit.Clear();

            CertificateFromEdit.SendKeys(Commondriver.Excellib.ReadData(3, "From"));

            SelectElement year = new SelectElement(CertificateYearEdit);

            year.SelectByText(Commondriver.Excellib.ReadData(3, "Year"));

            UpdateCertificateButtonlastRow.Click();


            Thread.Sleep(1000);
        }
예제 #4
0
        internal void EnterShareSkill()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Shareskills");
            Title.SendKeys(Commondriver.Excellib.ReadData(2, "Title"));
            Description.SendKeys(Commondriver.Excellib.ReadData(2, "Description"));
            Commondriver.Wait(10);
            SelectElement catobj = new SelectElement(Category);

            catobj.SelectByText(Commondriver.Excellib.ReadData(2, "Category"));
            Commondriver.Wait(10);
            SelectElement Subcatobj = new SelectElement(Subcategory);

            Subcatobj.SelectByText(Commondriver.Excellib.ReadData(2, "Subcategory"));
            Tagname.SendKeys(Commondriver.Excellib.ReadData(2, "Tagname"));
            Tagname.SendKeys(Keys.Return);
            Servicetype.Click();
            Locationtype.Click();
            Startdate.SendKeys(Commondriver.Excellib.ReadData(2, "Start date"));
            Enddate.SendKeys(Commondriver.Excellib.ReadData(2, "End date"));
            Availabledays.Click();
            Starttime.SendKeys(Commondriver.Excellib.ReadData(2, "Starttime"));
            Endtime.SendKeys(Commondriver.Excellib.ReadData(2, "End time"));
            Skilltrade.Click();
            Credit.SendKeys(Commondriver.Excellib.ReadData(2, "Credit"));
            System.Threading.Thread.Sleep(3000);
            AutoItX3 autoit = new AutoItX3();

            autoit.WinActivate("Open");
            autoit.Send(@"D:\\Mars\\MarsPageF\\file.txt");
            System.Threading.Thread.Sleep(3000);
            autoit.Send("{ENTER}");
            Active.Click();
            Save.Click();
        }
예제 #5
0
        internal void Verify_Hours_saved()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
            Commondriver.Wait(10);
            String Actualtime = Hours.Text;

            Assert.IsTrue(Actualtime.Contains(Commondriver.Excellib.ReadData(2, "Hours")));
        }
        internal void Editskill()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "EditRecord");
            Edit.Click();
            Commondriver.Wait(10);
            Shareskills S = new Shareskills();

            S.EditSkill();
        }
예제 #7
0
        internal void VerifyEditskill()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Skills");
            Commondriver.Wait(15);

            var ActSkillname = Skillnamevalue.Text;

            Assert.AreEqual(ActSkillname, Commondriver.Excellib.ReadData(3, "Skill"), "Skill name is not Changed");
        }
예제 #8
0
        internal void AvailableHours()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
            Houredit.Click();
            Commondriver.Wait(10);
            SelectElement Hoursavail = new SelectElement(Availhour);

            Hoursavail.SelectByText(Commondriver.Excellib.ReadData(2, "Hours"));
            Commondriver.Wait(10);
        }
예제 #9
0
        internal void Availabletime()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
            Availedit.Click();
            Commondriver.Wait(10);
            SelectElement Timeavail = new SelectElement(Availtime);

            Timeavail.SelectByText(Commondriver.Excellib.ReadData(2, "Time"));
            Commondriver.Wait(10);
        }
예제 #10
0
        internal void Targetadd()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
            Earnedit.Click();
            Commondriver.Wait(10);
            SelectElement Earntgt = new SelectElement(Targetearn);

            Earntgt.SelectByText(Commondriver.Excellib.ReadData(2, "Target"));
            Commondriver.Wait(10);
        }
예제 #11
0
 internal void Searchskill()
 {
     SearchClick.Click();
     Commondriver.Wait(10);
     Category.Click();
     Commondriver.Wait(15);
     Subcategory.Click();
     Commondriver.Wait(15);
     Filter.Click();
     Commondriver.Wait(15);
 }
예제 #12
0
 internal void EditSkill()
 {
     Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Skills");
     Commondriver.Wait(15);
     Editbutton.Click();
     Skillname.Clear();
     Commondriver.Wait(15);
     Skillname.SendKeys(Commondriver.Excellib.ReadData(3, "Skill"));
     Updatebutton.Click();
     Commondriver.Wait(15);
 }
예제 #13
0
 internal void Description()
 {
     Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
     Descripedit.Click();
     Commondriver.Wait(10);
     Descriptext.Clear();
     Commondriver.Wait(10);
     Descriptext.SendKeys(Commondriver.Excellib.ReadData(2, "Description"));
     Descripsave.Click();
     Commondriver.Wait(10);
 }
예제 #14
0
        internal void Verifydeleteskill()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Skills");
            Commondriver.Wait(10);

            var ActSkillname  = Skillnamevalue.Text;
            var ActSkilllevel = Skilllevelvalue.Text;

            Assert.AreNotEqual(ActSkillname, Commondriver.Excellib.ReadData(3, "Skill"), "Skill name is not deleted");

            Assert.AreNotEqual(ActSkilllevel, Commondriver.Excellib.ReadData(2, "Level"), "Skill level is not deleted");
        }
예제 #15
0
        internal void Edit_Language()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Language");
            Commondriver.Wait(10);
            Editclick.Click();
            Commondriver.Wait(10);
            SelectElement Chglevel = new SelectElement(AddLevel);

            Chglevel.SelectByText(Commondriver.Excellib.ReadData(3, "Level"));
            Updatebutton.Click();
            Commondriver.Wait(15);
        }
예제 #16
0
 internal void Profiletitle()
 {
     Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
     Dropdown.Click();
     Commondriver.Wait(10);
     Fname.Clear();
     Fname.SendKeys(Commondriver.Excellib.ReadData(2, "FirstName"));
     Lname.Clear();
     Lname.SendKeys(Commondriver.Excellib.ReadData(2, "LastName"));
     Commondriver.Wait(10);
     TitleSave.Click();
     Commondriver.Wait(10);
 }
예제 #17
0
 internal void Assertprofile()
 {
     try
     {
         Commondriver.Wait(10);
         Assert.AreEqual(Profpage.Text, "Mars Logo");
         Base.test.Log(LogStatus.Info, "Navigated to profile page ");
     }
     catch
     {
         Base.test.Log(LogStatus.Info, "Navigate to profile page failed");
     }
 }
예제 #18
0
        internal void Addskill()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Skills");
            Skilltab.Click();
            Addnewbutton.Click();
            Skillname.SendKeys(Commondriver.Excellib.ReadData(2, "Skill"));
            SelectElement Levelskill = new SelectElement(Skilllevel);

            Levelskill.SelectByText(Commondriver.Excellib.ReadData(2, "Level"));
            Commondriver.Wait(10);
            Addbutton.Click();
            Commondriver.Wait(20);
        }
예제 #19
0
 //shareskill page assertions
 internal void Assertshare()
 {
     try
     {
         Commondriver.Wait(10);
         Assert.AreEqual("ServiceListing", Commondriver.Driver.Title);
         Base.test.Log(LogStatus.Info, "Navigated to Service listing page");
     }
     catch
     {
         Base.test.Log(LogStatus.Info, "Navigate to service list page failed");
     }
 }
예제 #20
0
        internal void AssertManage()
        {
            try
            {
                Commondriver.Wait(10);
                Assert.AreEqual(Managetext.Text, "Manage Listings");

                Base.test.Log(LogStatus.Info, "Navigated to Manage listing page");
            }
            catch
            {
                Base.test.Log(LogStatus.Info, "Navigate to Manage listing page failed");
            }
        }
예제 #21
0
        internal void AddCertification()

        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Certification");

            Commondriver.Wait(10);

            CertificateAddNew.Click();
            CertificateAward.SendKeys(Commondriver.Excellib.ReadData(2, "Certificate"));

            CertificateFrom.SendKeys(Commondriver.Excellib.ReadData(2, "From"));

            SelectElement year = new SelectElement(CertificationYear);

            year.SelectByText(Commondriver.Excellib.ReadData(2, "Year"));

            CertificationAddData.Click();

            Thread.Sleep(1000);
        }
예제 #22
0
 internal void Register()
 {
     Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Signup");
     //Click on join
     Commondriver.Wait(2);
     Jointab.Click();
     //Enter firstname
     Firstname.SendKeys(Commondriver.Excellib.ReadData(2, "Frist Name"));
     //Enter lastname
     Lastname.SendKeys(Commondriver.Excellib.ReadData(2, "Last name"));
     //Enter email
     Email.SendKeys(Commondriver.Excellib.ReadData(2, "Email"));
     //Enter password
     Password.SendKeys(Commondriver.Excellib.ReadData(2, "Password"));
     //Confirm password
     Confirm.SendKeys(Commondriver.Excellib.ReadData(2, "Confirm password"));
     //Click on terms checkbox
     Terms.Click();
     //click on join
     Join.Click();
 }
예제 #23
0
        internal void LoginSteps()
        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Signin");

            Commondriver.Driver.Navigate().GoToUrl(Commondriver.Excellib.ReadData(2, "Url"));

            //Click on sigin button
            Commondriver.Wait(10);
            Signintab.Click();

            //Enter usename
            Commondriver.Wait(10);
            Username.SendKeys(Commondriver.Excellib.ReadData(2, "Username"));

            //Enter password
            Commondriver.Wait(10);
            Password.SendKeys(Commondriver.Excellib.ReadData(2, "Password"));

            //Click on login button
            Loginbutton.Click();
        }
예제 #24
0
        internal void EditEducation()

        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Education");

            Commondriver.Wait(10);

            EducationEditiconFirst.Click();

            CollegeName.Clear();

            CollegeName.SendKeys(Commondriver.Excellib.ReadData(3, "CollegeName"));
            Commondriver.Wait(10);

            SelectElement country = new SelectElement(CountryDropdown);

            country.SelectByText(Commondriver.Excellib.ReadData(3, "CountryOfCollege"));

            SelectElement Titledrop = new SelectElement(TitleDropdown);

            Titledrop.SelectByText(Commondriver.Excellib.ReadData(3, "TitleDrop"));

            Degree.Clear();

            Degree.SendKeys(Commondriver.Excellib.ReadData(3, "Degree"));



            Thread.Sleep(3000);
            SelectElement Yeardrop = new SelectElement(GradutionYearDropDown);

            Yeardrop.SelectByText(Commondriver.Excellib.ReadData(3, "Year"));


            Thread.Sleep(3000);
            UpdateButtonEducationData.Click();
            Thread.Sleep(5000);
        }
예제 #25
0
        internal void AddEducation()

        {
            Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "Education");


            //Click on Add new button for education
            Commondriver.Wait(10);
            EducationAddNew.Click();

            //Enter Valid Education details
            Commondriver.Wait(10);

            CollegeName.SendKeys(Commondriver.Excellib.ReadData(2, "CollegeName"));

            SelectElement country = new SelectElement(CountryDropdown);

            country.SelectByText(Commondriver.Excellib.ReadData(2, "CountryOfCollege"));

            SelectElement Titledrop = new SelectElement(TitleDropdown);

            Titledrop.SelectByText(Commondriver.Excellib.ReadData(2, "TitleDrop"));

            Degree.SendKeys(Commondriver.Excellib.ReadData(2, "Degree"));



            Thread.Sleep(3000);
            SelectElement Yeardrop = new SelectElement(GradutionYearDropDown);

            Yeardrop.SelectByText(Commondriver.Excellib.ReadData(2, "Year"));


            Thread.Sleep(3000);
            AddButtonEducationData.Click();
            Thread.Sleep(2000);
        }
예제 #26
0
 internal void Asserttext()
 {
     Commondriver.Excellib.PopulateInCollection(Base.Excelpath, "ProfilePage data");
     Commondriver.Wait(10);
     Assert.AreEqual(Textsaved.Text, Commondriver.Excellib.ReadData(2, "Description"));
 }
예제 #27
0
 internal void NavigateToCertification()
 {
     CertificateTab.Click();
     Commondriver.Wait(10);
 }
예제 #28
0
 internal void Listing()
 {
     Commondriver.Wait(10);
     Delete.Click();
     Popup.Click();
 }
예제 #29
0
 internal void Deleteskill()
 {
     Commondriver.Wait(15);
     Deletebutton.Click();
 }