User Tag List

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Browser.Keys in Firefox Tests


    Maybe someone else has encountered this. I am testing an application in Firefox. I am encountering some issues in the code itself that is created after recording.

    For some reason, it seems like TC is not truly capturing the first object I am testing against on each page. For example:

    <font class="small">Code:</font><hr /><pre>
    Call Aliases.firefox.wndMozillaUIWindowClass.Browser.Mo zillaWindowClass.MozillaWindowClass.MozillaContent WindowClass.Browser.Keys("Tester[Tab]")
    Call Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.textboxLastna me.Keys("User[Tab]")
    Call Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.textboxEmail. Keys("test.user@sb.com[Tab]")
    Call Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.textboxConfir memail.Keys("test.user@sb.com[Tab]")
    Call Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.passwordboxPa sswd.Keys("1234[Tab]")
    Call Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.passwordboxCo nfirmpassword.Keys("1234") </pre><hr />

    So, it captures all the elements on the page correctly EXCEPT the very first one - the First Name field. For some reason it calls that one "Browser.Keys".

    I have seen this in some other posters' code snippets, but no one else has questioned it that I can see.

    If I use the object browser on that particular text field, it gives me a "real" value:

    Aliases.firefox.pageOpenthesisUploadAndSearchThe.p anelContainer.panelMidsection.panelPadding.panelWi decolumn.panelContent.form.panelForm.textboxFirstn ame

    but when I record a test, it uses that "Browser.Keys" object.

    I wouldn't mind so much, but TC is being inconsistent in executing the test on that line. It often skips it entirely. I tried naming it myself and putting the code in there, but that didn't work. It would still skip it.

    Does anyone have any idea why it would name it like this?


  2. #2
    Senior Member
    Join Date
    May 2004
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Re: Browser.Keys in Firefox Tests


    Before recording actions over the first text file, try waiting for some time until the new page is loaded. Does this works?

    If this does not work, can you send us the link to the web site with which the problem can be reproduced? Also, please let me know the version of Firefox you have.
    Best regards,
    David - SmartBear Support



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:16 PM.

Copyright BetaSoft Inc.