this is my code

using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;
//using SeleniumExtras.PageObjects;
using OpenQA.Selenium.Support.PageObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;

namespace Pom_Facebook
     public class HomePage
        public IWebDriver driver;
        public HomePage(IWebDriver driver)
            this.driver = driver;
            //to initaill all the web element 
        [FindsBy(How =How.Id,Using = "email")]
        public IWebElement  Email { get; set; }
        [FindsBy(How=How.Id,Using  ="pass")]
        public IWebElement Password { get; set; }


I tried to add seleniumExtra then i am getting error as"Severity Code Description Project File Line Suppression State Error CS0104 'FindsBy' is an ambiguous reference between 'SeleniumExtras.PageObjects.FindsByAttribute' and 'OpenQA.Selenium.Support.PageObjects.FindsByAttribute'


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.