Peter,
Did you read the link I sent? I ask because I've never used Seleneum before, but this part really caught my eye:
In AJAX driven web applications, data is retrieved from server without refreshing the page. Using andWait commands will not work as the page is not actually refreshed. Pausing the test execution for a certain period of time is also not a good approach as web element might appear later or earlier than the stipulated period depending on the system's responsiveness, load or other uncontrolled factors of the moment, leading to test failures. *The best approach would be to wait for the needed element in a dynamic period and then continue the execution as soon as the element is found.** ** **This is done using waitFor commands, as waitForElementPresent or waitForVisible, which wait dynamically, checking for the desired condition every second and continuing to the next command in the script as soon as the condition is met.*
The overlays load iFrames, which can always be cumbersome to work with, but that last paragraph was the key. I went ahead and installed Selenium and came up with this real quick:
open | (url) click | id=toolbar-link-admin-people waitForElementPresent | xpath=//iframe[contains(@title, 'People dialog')] selectFrame | xpath=//iframe[contains(@title, 'People dialog')] click | xpath=//ul[contains(@class, 'action-links')]/li/a
Like wise if you want to click the Permissions tab, change the last click to :
xpath=//ul[contains(@id, 'overlay-tabs')]/li[last()]/a
Considering every element doesn't have an ID, I decided to use xpath, as I know that.
Tested in FF 26 with Selenium IDE 2.5.0 on local D7 site as well as a hosted one.
Jamie Holly http://hollyit.net
On 1/27/2014 6:15 PM, Peter Kehl wrote:
Jamie,
I had done my homework. 'People' tab link can't be located by Selenium IDE, whether I use waitForXXX or pause for any long period. That's why I've asked here.
-Peter Kehl
http://docs.seleniumhq.org/docs/02_selenium_ide.jsp#the-waitfor-commands-in-...
Jamie Holly