UFT is not able to identify Web Browser elements - hp-uft

I have a keyword driven framework. Keywords are all in VBscript plus descriptive programming. I created a script in excel which worked just fine after I ran it multiple times. Now it does not work. UFT is not clicking the right element, not entering in the edit field, etc. I had about 65 steps on that script. Now, this works on dev portal but not on the test portal. It worked on test portal over 50 times last week.  
To debug, I simply first used the record and playback features and noticed that it does not work too. 
I have a main menu in dot net page. Main menu has 5 links. I simply recorded the register link which is 3rd link and I see this code generated:
Browser("Portal").Page("Portal").Link("Register").Click
I went to OR and I saw register object was added just fine. Text = Register. From OR, when I clicked the highlight in app button, it did not highlight the register link. Instead, it highlighted the partially  2nd link which is "Fund". 
When I run the script, it clicks the 2nd link Fund. 
Why does it click on Fund link? Why does it highlight the Fund link partially? 
I am talking about the test portal. If I do the exact same thing in the dev portal, I do not have the same issue. What could go wrong in test portal? Do you think application is blocking UFT from automating in their end or perhaps  bad source code in the application?
Update 1
1 Recording
During recording, Clicked on register link, this code generated:
Browser("Browser").Page("Page").Link("Register").Click
Clicked on contact link, this code generated:
Browser("Browser").Page("Page_2").Link("Contact").Click
2 Running
During run, first line clicks on fund instead of register.
Second line clicks on register instead of contact.
3. OR
Register link in OR Shows everything just fine.
Contact link in OR shows contact info just fine.
  
4 Spy
When I hover over on register link, it recognizes contact link instead of register.
5 Spy
When I hover over on fund link, it recognizes register instead of fund.
Summary:
During recording it recognizes correct link. During running it click on the previous link. This is a pattern I see so far.

Browser was set to 125% zoom. I reset to 100% and it worked out just fine. I am not sure why UFT confused during running because of zooming. UFT was able to find it just fine during recording but it clicks another element during running. I am glad at least it is fixed. Thanks.

Related

Personal Tab Renders Fine, then a few seconds later shows "There was a problem reaching this app"

I'm testing something in a personal tab (something related to SSO, if that's important in context), and the tab renders fine for about 30 seconds or so, then suddenly gets replaced with an error "There was a problem reaching this app" (the one with the image of a woman and a thought bubble). Does anyone know why this suddenly happens AFTER the tab has ALREADY rendered ok?
I finally found an answer to this, so posting in case someone else has the issue. Basically, Teams manifest recently added a capability to show a loading / progress indicator to show users that your tab is still loading. It shows up in the manifest as "showLoadingIndicator" and is boolean (true/false). It can also be set in App Studio of course, as the image below shows.
The problem comes in that the "SDK" link shown in App Studio is flat-out useless - it links to the Teams js Library on GitHub, of all places! It should rather go to this section of this page, which explains how to deal with it. I was originally only calling microsoftTeams.appInitialization.notifyAppLoaded();, but I needed to also call microsoftTeams.appInitialization.notifySuccess().

Show an adaptive card in popup (using tabs configuration url) while bot is installed in msteams

I want to show a task module (not url) while bot installs (with tab) in the teams. Something like Text does, but a bit more interactive with drop downs and all.
I have referred to the link to create deep link for tab and paste the link here, in app-studio manifest editor:
But this doesn't seem to work. Only an empty pop up shows following this procedure.
Can someone correct me, where I am going wrong! TIA!
This "Text" screen is not showing a Task module, it's showing a custom Configuration page for the app's Tab installation. When you create an App that includes a Tab, you have the option of creating such a "Configuration" popup that gives the user the chance to configure how your tab will actually work. See here for more: https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/create-tab-pages/configuration-page
Within that configuration page, you can show whatever web content you'd like. Showing an Adaptive Card is a bit of a strange scenario considering it's a web page, but you could conceivably do this using the adaptive cards js library inside the page (https://www.npmjs.com/package/adaptivecards)

How to make a backwards button in a GUI work for a search engine in Eclipse

I can't figure out how to make a back button function from going to one webpage to another through a created search engine in Eclipse
I cannot find anything that will work
The results would be that when you enter a website then another one you would be able to go back to the first website from the said second website

Display of object class in page frame for visual foxpro 6

I've bundle of control save in .vcx file but I need to activate it to display it when i switch to different activepage in pageframe.
Could anyone guide me how to code and which kinds of event should i make on page frame switch, click or whatelse UIENABLEEVENT.
Thanks.
First, you might want to click on Help -> Tour for site etiquette and start voting / checking your answers so people know what worked or not that help you and others with similar issues.
Now, back to you question... If you have a form with a pageframe, make sure you have the "Properties" sheet open, it helps to ensure which object you are actually working with until you get more familiar with the IDE.
Once you click on the pageframe control, if you right-click and then select "Edit", that will bring you to the individual PAGE level of the pageframe. Once the PAGE is the basis of the focus you can put any control on it from either the toolbar, or if your project is open and you expand your .VCX class library, you can grab any control and put in on the page.
If you have multiple pages, once you click on the alternate pages, you will see that the first page (or whatever page) is no longer visible and the new page is available for you.
The actual handling of the pages on the pageframe for clicking / focus is automatically handled for you unless you want to do something extra.

back button function for phonegap windows phone 7

How do I get the back button from Windows phone to work with PhoneGap 1.2?
Now what the back button does is exit the app.
There is a good post I dont understand or get to work by one of the SO editors: http://www.scottlogic.co.uk/blog/colin/2011/11/handling-the-back-stack-in-windows-phone-7-phonegap-applications/
but I dont understand it and I cant get it to work. (even the sample .sln has an error for me)
My app is a very simple structure of index.html and many html does that come off that one page, so if all the back button did was goto index.html, that would probably work for me.
Is there a solution for idiots? For example - add this framework but only to specific pages. Put this code here, and that code there, and those pages dont need anything. Something like that?
I have recently published a more simple example for back-button handling in applications that contains simple HTML pages:
http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/
In essence, there is some C# code that keeps track of when the browser navigates from one page to another, handling the back-button event in an appropriate fashion. Just drop your code into the www directory and it should work fine.

Resources