GUI Variables

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
regex
Posts: 48
Joined: Tue Aug 14, 2012 5:47 pm

GUI Variables

Post by regex » Thu Sep 06, 2012 9:04 pm

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);

        }

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: GUI Variables

Post by Support Team » Mon Sep 10, 2012 5:33 pm

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
.
Image