Webelememt >> innertext In FF the innertext reads without spaces so it fails when compare
Sent from my iPhone On Jun 8, 2012, at 11:24 PM, Anish Pillai <[email protected]> wrote: > Hello Gajendra, > > Following are few points you should take care with your scripts when you want > to run it in both IE and FF. > > 1) Both browsers handle pop-ups in a different manner. So you have to handle > them differently. Maybe you can create a global variable which will find the > type of browser and then handle the pop-ups based on the Browser type. > > 2) There are some function like Browser.Back, Browser.Home, > Browser.ClearCache that are not supported in FF. (I'm not aware of the > complete list of functions. But it should be mostly the Browser functions > only). > > 3) I think FF doesnt support the type property of a WebButton. ie. When you > spy using IE, you will find the type property for the button. But you will > not find this property when you spy the object in FF. So you should not use > this property when doing Cross Browser automation. > > 4) When you work with web tables and use GetCellData method, in FF there > might be additional spaces or junk characters that might be there at the end > of the string. This would usually not be there in IE. So you need to take > care of this also. > > 5) Also Certificate Errors are handled by both these browsers. So this also > should be considered while scripting. > > > These are the major points that I can think as of now. The same properties > apply to google chrome also. So you can actually test your scripts for all > these 3 browsers.. :) :) > > If anyone has any other points, please add it over here so that we all can > benefit from it. > > > > Cheers, > a n i s h > > [QTP Tutorial] | [VBScript Tutorial] | [QTP Blogs] > > [** Subscribe to Get New Posts in your Inbox **] > > > -- > ar > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
