Not able select the pop up window

View: New views
2 Messages — Rating Filter:   Alert me  

Not able select the pop up window

by Eleo-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
i am using a devlopment testing framework called Jameleon which is in built using a SeleniumRC.
the problem is like this, i m clicking on an image that will results to popup, but while i m trying to select
popup window i m getting exception like window does not exist

my plugins are like this.

   <otplugin-ClickImage
            functionId="Select Performer"
            Name="//img[@alt='Select Performer']"
            HTMLAttribute="alt=Select Performer"
     />
       
          <otplugin-Wait
                functionId="WaitForPopUp"
                waitForElementType="POPUP"
                waitForElementIdentifier="Select performer"
          />
         
      <otplugin-SelectWindow
                functionId="Select Select performer"
                Title="Select performer"
          />

i m getting the following exception

com.thoughtworks.selenium.SeleniumException: ERROR: Window does not exist
        at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73)
        at com.thoughtworks.selenium.DefaultSelenium.selectWindow(DefaultSelenium.java:230)
        at net.sf.jameleon.plugin.opentext.tags.general.actions.SelectWindowTag.testBlock(SelectWindowTag.java:42)
        at net.sf.jameleon.function.FunctionTag.doTag(FunctionTag.java:261)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.SessionTag.doTag(SessionTag.java:189)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.PostconditionTag.doTag(PostconditionTag.java:36)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.TestCaseTag.invokeChildren(TestCaseTag.java:658)
        at net.sf.jameleon.TestCaseTag$1.run(TestCaseTag.java:868)
        at net.sf.jameleon.TestCaseTag.executeBody(TestCaseTag.java:929)
        at net.sf.jameleon.TestCaseTag.executeNoCSV(TestCaseTag.java:866)
        at net.sf.jameleon.TestCaseTag.doTag(TestCaseTag.java:815)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:579)
        at net.sf.jameleon.ExecuteTestCase.runScript(ExecuteTestCase.java:271)
        at net.sf.jameleon.ui.TestCasePane$ExecuteButtonAction$2.run(TestCasePane.java:293)

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-ide-users-unsubscribe@...
For additional commands, e-mail: selenium-ide-users-help@...


Re: Not able select the pop up window

by Bhargav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi ,

Instead of giving the title as the identifier to select a popup window, use Selenium IDE to record those actions first & use the ID recorded in the selenium IDE .Hope this works for your issue.


Eleo-3 wrote:
Hi
i am using a devlopment testing framework called Jameleon which is in built using a SeleniumRC.
the problem is like this, i m clicking on an image that will results to popup, but while i m trying to select
popup window i m getting exception like window does not exist

my plugins are like this.

   <otplugin-ClickImage
            functionId="Select Performer"
            Name="//img[@alt='Select Performer']"
            HTMLAttribute="alt=Select Performer"
     />
       
          <otplugin-Wait
                functionId="WaitForPopUp"
                waitForElementType="POPUP"
                waitForElementIdentifier="Select performer"
          />
         
      <otplugin-SelectWindow
                functionId="Select Select performer"
                Title="Select performer"
          />

i m getting the following exception

com.thoughtworks.selenium.SeleniumException: ERROR: Window does not exist
        at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73)
        at com.thoughtworks.selenium.DefaultSelenium.selectWindow(DefaultSelenium.java:230)
        at net.sf.jameleon.plugin.opentext.tags.general.actions.SelectWindowTag.testBlock(SelectWindowTag.java:42)
        at net.sf.jameleon.function.FunctionTag.doTag(FunctionTag.java:261)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.SessionTag.doTag(SessionTag.java:189)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.PostconditionTag.doTag(PostconditionTag.java:36)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at net.sf.jameleon.TestCaseTag.invokeChildren(TestCaseTag.java:658)
        at net.sf.jameleon.TestCaseTag$1.run(TestCaseTag.java:868)
        at net.sf.jameleon.TestCaseTag.executeBody(TestCaseTag.java:929)
        at net.sf.jameleon.TestCaseTag.executeNoCSV(TestCaseTag.java:866)
        at net.sf.jameleon.TestCaseTag.doTag(TestCaseTag.java:815)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:579)
        at net.sf.jameleon.ExecuteTestCase.runScript(ExecuteTestCase.java:271)
        at net.sf.jameleon.ui.TestCasePane$ExecuteButtonAction$2.run(TestCasePane.java:293)

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-ide-users-unsubscribe@openqa.org
For additional commands, e-mail: selenium-ide-users-help@openqa.org