UFT doesn't recognize object in SAP at first, but recognize it after i click debug - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: UFT doesn't recognize object in SAP at first, but recognize it after i click debug (/Thread-UFT-doesn-t-recognize-object-in-SAP-at-first-but-recognize-it-after-i-click-debug) |
UFT doesn't recognize object in SAP at first, but recognize it after i click debug - CedricMab - 08-03-2016 Hello, I work on UFT 12.52 build 6851 with SAP 730 I already have some tests, and now i want to create a test that will launch SAP and login. When i get to the connection window, UFT cannot recognize the object. What is really weird is that if i click on debug and then just after click the play button UFT will recognize the object. Moreover, i noticed that if the SAP Logon window is already opened, UFT will find the connection at first try. Thanks a lot for any insight you might have, Cédric. Error message : My object repository is as follows, i can show you the other objects but the error message speak about the "session" object : My code really isn't that particular, but if you need to see it : Code: If DataTable.GlobalSheet.GetCurrentRow = 1 Then RE: UFT doesn't recognize object in SAP at first, but recognize it after i click debug - Ankur - 08-04-2016 A couple of things you can try -
RE: UFT doesn't recognize object in SAP at first, but recognize it after i click debug - CedricMab - 08-04-2016 Hi, Setting a wait statement didn't correct the bug. For the hwnd, i copied the code you provided but it didn't worked. Maybe i didn't implement it correctly however. I'm not really sure. Code: 'Step1: Simulate your action to bring the popup window RE: UFT doesn't recognize object in SAP at first, but recognize it after i click debug - nguyen4685 - 02-06-2017 Sorry, i know that this thread is quite old, but i have the same problem by trying to select/activate an object in SAP could you fix this problem? if yes, please tell me how to fix it thanks |