SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to Playback Pop Up using Selenium IDE

    Hi,

    I am a new user to Selenium IDE, we just tried recording of our applicaiton Login and Logout using IDE. But it failed to playback the Logout fucntionality. I need to click the logout link and then a pop up appears in which i need to click an OK button to logout.

    Can anyone suggest me as to how to handle PopUps using IDE.

  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to Playback Pop Up using Selenium IDE

    Post your recorded code

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to Playback Pop Up using Selenium IDE


    Hi,
    Here is the code.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head profile="http://selenium-ide.openqa.org/profiles/test-case">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="selenium.base" href="" />
    <title>one</title>
    </head>
    <body>
    <table cellpadding="1" cellspacing="1" border="1">
    <thead>
    <tr><td rowspan="1" colspan="3">one</td></tr>
    </thead><tbody>
    <tr>
    <td>type</td>
    <td>userIdStr</td>
    <td>tfshr@fadv.com</td>
    </tr>
    <tr>
    <td>type</td>
    <td>passwordStr</td>
    <td>pass12!*</td>
    </tr>
    <tr>
    <td>click</td>
    <td>cmdSubmit</td>
    <td></td>
    </tr>
    <tr>
    <td>waitForPageToLoad</td>
    <td>5000</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>link=Order Case</td>
    <td></td>
    </tr>
    <tr>
    <td>select</td>
    <td>packageId</td>
    <td>label=Regression Package 1</td>
    </tr>
    <tr>
    <td>select</td>
    <td>plKindOfCheckId</td>
    <td>label=Pre-Employment Screening</td>
    </tr>
    <tr>
    <td>type</td>
    <td>firstName</td>
    <td>case2</td>
    </tr>
    <tr>
    <td>click</td>
    <td>//input[@id='isDobMan' and @name='isDobMan' and @value='N']</td>
    <td></td>
    </tr>
    <tr>
    <td>select</td>
    <td>subDetails</td>
    <td>label=FADV</td>
    </tr>
    <tr>
    <td>click</td>
    <td>permission</td>
    <td></td>
    </tr>
    <tr>
    <td>assertConfirmation</td>
    <td>IMPORTANT: FADV will immediately proceed to contact the current or most recent employer. Are you sure this is OK?</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>//input[@name='Submit' and @value='Upload Document']</td>
    <td></td>
    </tr>
    <tr>
    <td>select</td>
    <td>documentTypeId</td>
    <td>label=Bvf Document</td>
    </tr>
    <tr>
    <td>type</td>
    <td>document</td>
    <td>C:\Documents and Settings\bsundharesan\Desktop\test.pdf</td>
    </tr>
    <tr>
    <td>click</td>
    <td>cmdSave</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>cmdClose</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>submitcreatecase</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>Close</td>
    <td></td>
    </tr>
    <tr>
    <td>selectWindow</td>
    <td>null</td>
    <td></td>
    </tr>
    <tr>
    <td>click</td>
    <td>link=Log Out</td>
    <td></td>
    </tr>
    </tbody></table>
    </body>
    </html>



    A pop up window opens after this :
    <td>click</td>
    <td>//input[@name='Submit' and @value='Upload Document']</td>
    <td></td>

    And i am not able to do the remaining steps of uploading file and close it. Also window is showing as Null. and i do not have Window IDs for my application pop ups.

    I face same issue for Log out PopUp window.
    Here is the code for Log out.
    selenium.click("cmdSubmit");
    selenium.click("//area[@onclick='logout()']");
    selenium.click("//input[@name='close' and @value='Cancel']");

  4. #4
    Junior Member
    Join Date
    Feb 2010
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to Playback Pop Up using Selenium IDE

    Is there any chance that those popups are not browser windows. Upload window is a "desktop" window?
    In this case you need to use tool like AutoIt to handle them

  5. #5
    Junior Member
    Join Date
    Oct 2010
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to Playback Pop Up using Selenium IDE

    Hi ndinev,

    Thanks a lot for your quick response.
    I think its a Browser dialog, because it does have a URL.

    So, i need to download AutoIt tool to handle it. Will i be able to solve the issue.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 01:46 AM.

Copyright BetaSoft Inc.