private void checkEntryFromTable(ArcliteDataTable element, InputVal wanted)
        {
            string text = wanted.getSelectedVal();

            IArcliteWebElement search = element._searchElement;

            search.accept(this, wanted);

            if (element._confirmDelete == null && element._cancelDelete == null)
            {
                IArcliteWebElement check = new ArcliteButton("", element._tableEntryFirst + text + element._tableEntrySecond);
                check.accept(this, new InputVal());
            }
            else if (element._expand == null)
            {
                IArcliteWebElement delete = new ArcliteButton("", element._tableEntryFirst + text + element._tableEntrySecond);
                delete.accept(this, new InputVal());
            }
            else if (element._expand != null)
            {
                IArcliteWebElement expand = new ArcliteButton("", element._tableEntryFirst + wanted.valTwo + element._tableEntrySecond + element._expand);
                expand.accept(this, new InputVal());
            }
            else
            {
                throw new ArgumentException("something is or is not null");
            }
        }
Example #2
0
        /*
         * Creates a Canvas variable with its specific name and xpath
         */

        public ArcliteCanvas(string name, string xPath, IArcliteWebElement addStep) : base(name, xPath)
        {
            _elementName  = base.elementName;
            _elementXPath = base.elementXPath;

            this.addStep = addStep;
        }
        /*
         * Creates a Data Table variable with its specific name and xpath, data table with expand and delete
         */

        public ArcliteDataTable(string name, IArcliteWebElement search, string tableEntryFirst, string tableEntrySecond, string expandWithEntry, string deleteFirst, string deleteSecond, IArcliteWebElement confirmDelete, IArcliteWebElement cancelDelete) : base(name, "")
        {
            _searchElement    = search;
            _tableEntryFirst  = tableEntryFirst;
            _tableEntrySecond = tableEntrySecond;
            _confirmDelete    = confirmDelete;
            _cancelDelete     = cancelDelete;
            _expand           = expandWithEntry;
            _deleteFirst      = deleteFirst;
            _deleteSecond     = deleteSecond;
            _elementName      = base.elementName;
        }