Body:
HiNeed some help on selenium on ajax calls for lightbox elements.In my application, user have to sign in an popped up lightbox called by an ajax action.While recording the objects are identified and can be recorded but while running the script, the objects couldn’t be identified.I have tried using sleep, wait for conditions etc using xpath and other well known possible identifiers but no success was there. The html cript is something like this: <?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 xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"<head profile="http://selenium-ide.openqa.org/profiles/test-case"<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /<link href="" rel="selenium.base" /<titleNew Test</title</head<body<table cellspacing="1" border="1" cellpadding="1"<thead<tr<td rowspan="1" colspan="3"New Test</td</tr</thead<tbody<tr <tdopen</td <tdhttp://mptest.liveops.com/</td <td</td</tr<tr <tdassertTitle</td <tdexact:WorkForce: Show</td <td</td</tr<tr <tdclick</td <td//div[@id=’user_links’]/div2/div/ul/li/a1</td <td</td</tr<tr <tdclick</td <td//input[@type=’image’]</td //clicking on the “Submit” button. <td</td</tr<tr <tdclick</td <tdlink=Cancel</td //clicking on the “Submit” button. <td</td</tr </tbody</table</body</html The last two objects are from the lightbox window, which are not able to be identified. If any of you have ever worked on such scenarios, please let me know how I can handle the elements. Thanks,Hrushikesh Mohanty
Comment
Hi Hrushikesh,
From your script, I’m guessing that you are using Selnese test. Can you please post your question in http://clearspace.openqa.org/community/selenium.
Hope that helps. Do let us know if you need more info.