Page 1 of 1

GUI Variables

Posted: Thu Sep 06, 2012 9:04 pm
by regex
I am trying to create variables to easily enter repository elements, cell Index's, or other into the GUI field and the code sends the element. I can get this to compile but it won't find the actual element and spits out this error:

No element found for path 'portalqa.portalqarepository.instance.portal.page.reports.minordpercentrow1' within 10s.

I am trying to create a web element out of the USER inputed text, grab the inner text, and than convert it to a string. Finally this is sent to my central counting code.

Code: Select all

public void countGUI(string row1, string row2, string total)
        {
         	var rowTmp1 = new WebElement(row1);
         	var tmp = rowTmp1.InnerText.ToString();
         	Path.To.Called.Code.To.Count(row1, row2, total);

        }

Re: GUI Variables

Posted: Mon Sep 10, 2012 5:33 pm
by Support Team
Hello,

Why do you save the Repository items into new variables and don't use the Repository original elements?
Please make sure that the RxPath of the element, which is not found is correct and make sure that the element is still available.

Regards,
Bernhard
Ranorex Support Team