help: click problem on radio button and post form of nasty nested table of jsp page

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

help: click problem on radio button and post form of nasty nested table of jsp page

by jameleon-users mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

so i'm trying to click on a radio button then click on a submit button. the web page is jsp and i can't view the source.
Xpather shows the following xpath values:
for radio button:
/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[5]/td/table/tbody/tr[4]/td[1]

for submit button:
/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[7]/td[2]/table/tbody/tr/td/a

IE developer tool bar info:
for radio button:
Node: INPUT
name: smSelect
type: radio

for submit button:
Node: A
class defaultTableCommandButton
href: javascript:selectSearch('Attach')
title: to attach...


this is what i'm trying in jameleon, just click on submit only for now...using xpath:
        <jm:ie-click-html-element functionId="Click [Submit] button."
        xpath="/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[7]/td[2]/table/tbody/tr/td/a"   
    frameName="detail"
        />

this is the error:

junit.framework.AssertionFailedError: No matching element was found while trying to click on a 'null' html element!
    at junit.framework.Assert.fail(Assert.java:47)
    at net.sf.jameleon.function.FunctionTag$1.run(FunctionTag.java:799)
    at net.sf.jameleon.function.FunctionTag.assertMethod(FunctionTag.java:723)
    at net.sf.jameleon.function.FunctionTag.assertMethodWithLevel(FunctionTag.java:758)
    at net.sf.jameleon.function.FunctionTag.fail(FunctionTag.java:797)
    at net.sf.jameleon.function.FunctionTag.fail(FunctionTag.java:779)
    at net.sf.jameleon.plugin.jiffie.tags.IEClickHtmlElementTag.testBlock(IEClickHtmlElementTag.java:99)
    at net.sf.jameleon.function.FunctionTag.testBlock(FunctionTag.java:258)
    at net.sf.jameleon.function.FunctionTag.doTag(FunctionTag.java:296)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.WhileTag.doTag(WhileTag.java:62)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    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:181)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    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:639)
    at net.sf.jameleon.TestCaseTag$1.run(TestCaseTag.java:783)
    at net.sf.jameleon.TestCaseTag.executeBody(TestCaseTag.java:850)
    at net.sf.jameleon.TestCaseTag.executeNoCSV(TestCaseTag.java:781)
    at net.sf.jameleon.TestCaseTag.doTag(TestCaseTag.java:743)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:577)
    at net.sf.jameleon.ExecuteTestCase.runScript(ExecuteTestCase.java:219)
    at net.sf.jameleon.ui.TestCasePane$3.run(TestCasePane.java:297)


what would be the proper xpath or any other ways to click on radion and submit button?
thx!


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users

Parent Message unknown Re: help: click problem on radio button and post form of nasty nested table of jsp page

by jameleon-users mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

update: i was able to click on the submit button but still unable to click on desired radio button element.

--- On Thu, 3/19/09, jameleon-users@... <jameleon-users@...> wrote:

From: jameleon-users@... <jameleon-users@...>
Subject: [Jameleon-users] help: click problem on radio button and post form of nasty nested table of jsp page
To: jameleon-users@..., "Christian Hargraves" <engrean@...>
Date: Thursday, March 19, 2009, 4:02 PM

so i'm trying to click on a radio button then click on a submit button. the web page is jsp and i can't view the source.
Xpather shows the following xpath values:
for radio button:
/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[5]/td/table/tbody/tr[4]/td[1]

for submit button:
/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[7]/td[2]/table/tbody/tr/td/a

IE developer tool bar info:
for radio button:
Node: INPUT
name: smSelect
type: radio

for submit button:
Node: A
class defaultTableCommandButton
href: javascript:selectSearch('Attach')
title: to attach...


this is what i'm trying in jameleon, just click on submit only for now...using xpath:
        <jm:ie-click-html-element functionId="Click [Submit] button."
        xpath="/html/body/table[2]/tbody/tr/td[2]/form/table[3]/tbody/tr[7]/td[2]/table/tbody/tr/td/a"   
    frameName="detail"
        />

this is the error:

junit.framework.AssertionFailedError: No matching element was found while trying to click on a 'null' html element!
    at junit.framework.Assert.fail(Assert.java:47)
    at net.sf.jameleon.function.FunctionTag$1.run(FunctionTag.java:799)
    at net.sf.jameleon.function.FunctionTag.assertMethod(FunctionTag.java:723)
    at net.sf.jameleon.function.FunctionTag.assertMethodWithLevel(FunctionTag.java:758)
    at net.sf.jameleon.function.FunctionTag.fail(FunctionTag.java:797)
    at net.sf.jameleon.function.FunctionTag.fail(FunctionTag.java:779)
    at net.sf.jameleon.plugin.jiffie.tags.IEClickHtmlElementTag.testBlock(IEClickHtmlElementTag.java:99)
    at net.sf.jameleon.function.FunctionTag.testBlock(FunctionTag.java:258)
    at net.sf.jameleon.function.FunctionTag.doTag(FunctionTag.java:296)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.WhileTag.doTag(WhileTag.java:62)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    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:181)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    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:639)
    at net.sf.jameleon.TestCaseTag$1.run(TestCaseTag.java:783)
    at net.sf.jameleon.TestCaseTag.executeBody(TestCaseTag.java:850)
    at net.sf.jameleon.TestCaseTag.executeNoCSV(TestCaseTag.java:781)
    at net.sf.jameleon.TestCaseTag.doTag(TestCaseTag.java:743)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:577)
    at net.sf.jameleon.ExecuteTestCase.runScript(ExecuteTestCase.java:219)
    at net.sf.jameleon.ui.TestCasePane$3.run(TestCasePane.java:297)


what would be the proper xpath or any other ways to click on radion and submit button?
thx!


-----Inline Attachment Follows-----

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

-----Inline Attachment Follows-----

_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users