Click here to Skip to main content
15,888,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey All,

While creating an Action class object i am getting "Method name is Expected" error. Please find all the code below,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Baseclass.Contrib.SpecFlow.Selenium.NUnit.Bindings;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI;
using Verivox.Pages;

namespace Verivox.CommonLib
{
    public static class CommonActions
    {
        
        public static void ActionClick()
        {
            Action act = new Action(Browser.Current);
        }
    }
}



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium;
using TechTalk.SpecFlow;

namespace Verivox.Pages
{

    enum PropertyType
    {
        Id,
        Name,
        LinkText,
        CssName,
        ClassName
    }
    class PropertyCollection
    {

        private static BasePage _currentPage;

        public static BasePage currentPage
        {
            get { return _currentPage; }
            set
            {
                ScenarioContext.Current["class"] = value;
                _currentPage = ScenarioContext.Current.Get<BasePage>("class");
            }
        }
    }
}


What I have tried:

As i am very new to Selenium with C#, can anyone please help me on the same.
Posted
Comments
Richard MacCutchan 1-May-17 9:46am    
Where?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900