                   .url(browser.launch_url + "/grain/" + grainIdA)                   .grainFrame()                   .waitForElementVisible("table.grain-list-table>tbody>tr.add-grain>td>button", medium_wait)                   .click("table.grain-list-table>tbody>tr.add-grain>td>button")                   .frame(null)                   .waitForElementVisible(powerboxCardSelector(grainIdB), short_wait)                   .click(powerboxCardSelector(grainIdB))                   // Add with 'editor' permissions.                   .waitForElementVisible(".popup.request .selected-card>form input[value='0']", short_wait)                   .click(".popup.request .selected-card>form input[value='0']")                   .click(".popup.request .selected-card>form button.connect-button")                    .grainFrame()                   .waitForElementVisible("table.grain-list-table>tbody>tr.add-grain>td>button", short_wait)                   .click("table.grain-list-table>tbody>tr.add-grain>td>button")                   .frame(null)                   .waitForElementVisible(powerboxCardSelector(grainId