Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-322

Cannot get right click to work with Selenium to delete Repo Target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      Creating a script in Selenium to create a Repository Target, then to r-click and select Delete, however I cannot get the right click to work. Attaching script here.

      <?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>New Test</title>
      </head>
      <body>
      <table cellpadding="1" cellspacing="1" border="1">
      <thead>
      <tr><td rowspan="1" colspan="3">New Test</td></tr>
      </thead><tbody>
      <tr>
      <td>open</td>
      <td>/nexus/</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>500</td>
      <td></td>
      </tr>
      <tr>
      <td>mouseDown</td>
      <td>open-config-repoTargets</td>
      <td></td>
      </tr>
      <tr>
      <td>mouseUp</td>
      <td>open-config-repoTargets</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>500</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//td[2]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>type</td>
      <td>name</td>
      <td>Repo Target One</td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[2]/div/div/div/div/div/table/tbody/tr/td[1]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>500</td>
      <td></td>
      </tr>
      <tr>
      <td>verifyTextPresent</td>
      <td>The target should have at least one pattern.</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[2]/div[1]/div/img[1]</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[9]/div/div[3]</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[2]/div/div/div/div/div/table/tbody/tr/td[1]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>verifyTextPresent</td>
      <td>The target should have at least one pattern.</td>
      <td></td>
      </tr>
      <tr>
      <td>type</td>
      <td>document.forms[0].elements[2]</td>
      <td>com.somecompany.*</td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[2]/div/div/div/div/div/table/tbody/tr/td[1]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>verifyTextPresent</td>
      <td>The target should have at least one pattern.</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>document.forms[0].elements[3]</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[2]/div/div/div/div/div/table/tbody/tr/td[1]/table/tbody/tr/td[2]</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//td[2]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>type</td>
      <td>document.forms[1].elements[0]</td>
      <td>Repo Target Two</td>
      </tr>
      <tr>
      <td>click</td>
      <td>//div[3]/div[2]/div[2]/div/div/div/div/div/table/tbody/tr/td[1]/table/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>verifyTextPresent</td>
      <td>The target should have at least one pattern.</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//button</td>
      <td>Refresh</td>
      </tr>
      <tr>
      <td>click</td>
      <td>//table[@id='repoTarget-delete-btn']/tbody/tr/td[2]/em/button</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>1000</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>No</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>1000</td>
      <td></td>
      </tr>
      <tr>
      <td>mouseDownRight</td>
      <td>//div[@id='ext-gen475']/table/tbody/tr/td[1]/div</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>500</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>//a[contains(text(),'Delete')]</td>
      <td></td>
      </tr>
      <tr>
      <td>pause</td>
      <td>500</td>
      <td></td>
      </tr>
      <tr>
      <td>click</td>
      <td>Yes</td>
      <td></td>
      </tr>
      </tbody></table>
      </body>
      </html>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dip Dmitry Platonoff
              Reporter:
              koconnor Kristine O'Connor
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m

                    tigCommentSecurity.panel-title