IE6 scripts not working in IE7 - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: IE6 scripts not working in IE7 (/Thread-IE6-scripts-not-working-in-IE7) |
IE6 scripts not working in IE7 - bugfinder - 02-07-2011 Hi All, First of all thank you very much creating this forum, this has been very helpful for beginners like me. Great job guys, keep it up Here is my issue, I have some scripts created using QTP9.5 and IE6. I converted the scripts to QTP10 and tried to run them on IE7, they are failing miserably. I have searched in many forums but could not find a solution. I believe the problem is with IE 7 settings. The scripts are running fine for single browser/window and first pop up but when there is second pop up script is failing. I tried to add the pop up windows to the repository but object repository is not taking it. can anyone please help me out with this issue, Thanks in advance. RE: IE6 scripts not working in IE7 - manishbhalshankar - 02-08-2011 Hi Bug, As far as I can recall, there is a change in the text displayed in the title bar of IE7. Something related to "Webpage" and "Dialogbox" text. Please check and let us know. RE: IE6 scripts not working in IE7 - bugfinder - 02-08-2011 Hi Manish, Thank you very much for your prompt reply, I did spy on the window, the class name is shown as window but i couldnot find title bar as you mentioned. Is this what you needed? Thanks Bugfinder RE: IE6 scripts not working in IE7 - jsknight1969 - 02-09-2011 Code: dim Browserobj, validationtxt This code is adapted from a web framework I wrote that handles popups for me. I did make the Browserobj more generic, so hopefully it will still work for you. Hope this helps. RE: IE6 scripts not working in IE7 - manishbhalshankar - 02-09-2011 Hi Bug, You wont fine title bar. Check for the property: title and name. Check what it displays and compair it to that in IE6. RE: IE6 scripts not working in IE7 - bugfinder - 02-13-2011 Hi Manish, The pop up window doesnot have the properties you mentioned i.e title and name. I checked for Class name and text in IE6 and IE7 there is no difference. Regards Bugfinder Hi jsknight, Thanks for your reply, the pop up window doesnot have the properties you mentioned i.e micclass and url so I cannot use your code, is there anything else that I can try??? Thanks Bugfinder RE: IE6 scripts not working in IE7 - jsknight1969 - 02-15-2011 Try using regexpwndtitle or text properties. I am currently working on a newer version of this function because I ran into situations where I could not interact with the popups. When I have a better solution, I will post it. PS: The above code did work for javascript popups where you can specify the title, but in some .NET validations the title of the window is just "Windows Internet Explorer" and this code has issues with it. Ok. Change this. Code: With Browser(Browserobj).Dialog("title:=.*") I'm not sure if the nativeclass property will change, but so far, this is working for me. use the object spy and determine if the native class is the same on your testing. RE: IE6 scripts not working in IE7 - bugfinder - 02-19-2011 Hi Jsk , I finally found the solution, I copied the current regexpwndtitle and pasted it. Miraculously the window was recognized. JSK and Manish thank you all for your cooperation and support |