Select group

16 views
Skip to first unread message

rkea...@softworks.com

unread,
Oct 2, 2015, 4:18:09 AM10/2/15
to Selenium Users
Hi

Why can I not do the following below as the select should take a webelement?


        [FindsBy(How = How.Id, Using = "PROFTYPE_0")]
        public IWebElement Profile { get; set; }



        public void AddProfile()
        {

           
             new SelectElement(driver.FindElement(Profile).SelectByText("Use Primary - Super User");



        }


But this work fine

 new SelectElement(driver.FindElement(By.Id("PROFTYPE_0"))).SelectByText("Use Primary - Super User");

rkea...@softworks.com

unread,
Oct 2, 2015, 4:37:40 AM10/2/15
to Selenium Users
Hi

Please disregard this question, it was a silly questions, need some coffee

thanks 
Reply all
Reply to author
Forward
0 new messages