nastesterRegular ContributorJoined 6 years ago235 Posts30 LikesLikes received13 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Refine area to solve OCR.Recognize found 2 object MW_Didata Question for you because I will be in a similar boat too soon I think. Are you using OCR to automate that datepicker? With the datepicker my web app has, I dont think I have the ability to set the date using some method or property or something so I'd have to click on it, which seems not good. Just thinking about how I am going to do this... Handling multiple selectors for same object My web app has a grid. I can switch views and the table shows different data. I want to map the objects in the first row for each column in the grid for both views. Currently, I have one object that has two selectors depending on the view: (//div[@col-id="PolygonDescription" and @role="gridcell"])[1] (//div[@col-id="TrackingNumber" and @role="gridcell"])[1] function test() { //Log Tracking Number Log.Message(NameMapping.Sys.browser.pageCenterView.panelTrackNum.contentText); //Switch to other tab NameMapping.Sys.browser.pageCenterView.buttonTabManifestlistTerritory.Click(); //Log Description Log.Message(NameMapping.Sys.browser.pageCenterView.panelTrackNum.contentText); } This is currently working but it's little slow because it's trying to find the first selector first. My question is, is there a better way to handle this? SolvedRenaming virt services Bit of an odd question but is there any way to rename/shorten the virt service? I am using composite projects and when I try renaming the file, it completely removes the virt action from the API. This is how long the file name is: %2FCountries%2F%7BCountryCode%7D%2FCenters%2F%7BOrganizationNumber%7D%2FServiceDate%2F%7BServiceDate%7D%2FViewType%2F%7BViewType%7D%2FPreloadSummary.xml and we aren't able to have filenames this long in ADO Cloud. Re: How to launch clean browser Cool this seems to work for me. Need to find an Edge equivalent and I haven't tried with the bottom run options yet. Regarding the extension, it seems like TC automatically installed it so I don't need to worry about that How to launch clean browser How can I, in TestComplete, open a clean browser session? Meaning no cache, no history, no profile signed in, just a clean blank slate. I would think this would be a very common scenario but I cannot figure out how to do this... Re: Failing Tests since Feb 17 What is going with the TC/TE development team?? Every release introduces some issue it seems... Re: Issue using Excel and variables in name mapping Could you point me to some documentation that goes through this? If you know. I understand I can get the contentText of the object and then I have a cell in my sheet that has the expected value but I am missing the part of comparing. I think what I have is doing this but backwards but I am getting confused on how to switch it around. I have this ugly xpath which can give me the contentText of the current cell (when filtered) //div[@role='treegrid']/div[3]//div[2]//div[2] and I get the value I am looking for but then I need to compare that value with my sheet Re: Issue using Excel and variables in name mapping Using the Object mapper, TC is only identifying the cells of my table (it's Ag grid and technically unsupported by TC) by one xpath: //div[.='10B'] for example. I am not clear on what else I could do for this object other than use a variable in my selector. Also, I'd like to avoid calling this API (which is a mock) because it still requires an auth token and I don't know if I want to go down that hole of trying to figure out how to generate token in TC (already have that set up in ReadyAPI. I am aware of the TC/ReadyAPI integration but frankly it is not good). I could however look into just reading from the JSON response. I am guessing I could just add that file to my project as a data store or something. Something to look into but Excel is fine for now. I am more curious on how I could better handle the object/selector but based on how TC is mapping it, I'm really not sure what else I could do.. Re: Issue using Excel and variables in name mapping I don't think I follow you. Could you elaborate a bit because I am genuinely curious if there is a better way to do what I am trying to accomplish. This is what I am doing: The cells in the first row of the data table are mapped and the xpath is updated to read from a Project Level variable A script pulls data from Excel which is storing the data in the table and it assign the columns to the corresponding Project Level variable A Keyword test performs the necessary UI actions including searching the table to filter it to one row of data The Keyword test then compares the current value of the UI object to the Project level variable (which is coming from Excel) I'm sure there is a better way to do this. This is my first time using TC in this way. But it does work for multiple rows of data in my sheet. Re: Issue using Excel and variables in name mapping Expected result/actual result. And no, the test is verifying that the data table on the UI is displaying the expected data from the API in the right location. It isn't inputting any data.