Jameleon / Jiffie click-html-element problem when next jsp page frame name is same

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

Jameleon / Jiffie click-html-element problem when next jsp page frame name is same

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

Reply to Author | View Threaded | Show Only this Message

ok so just noticed something strange: jiffie plugin, click-html-element, it will click on button element that exist when frame is first loaded, then after I've clicked submit then arrived at next jsp page with same frame name (of course jsp page source is now a different page), i try click on a button on the new page, jameleon give error:

Error Message: No matching element was found while trying to click on a 'null' html element!

but if from that new page, if i click on a button element with same name that existed before then it clicked OK.

how can I tell jameleon/jiffie to look for new xpath of new page when frame name is same?


at 2nd jsp page if click Next failed, if click Back then OK, this is my xpath src:
    <jm:ie-click-html-element functionId="Click Next"
        frameName="header,detail,detail"
        xpath="//A[text()='Next']"
        functionDelay="3000"       
        />

    <jm:ie-click-html-element functionId="Click Back"
        frameName="header,detail,detail"
        xpath="//A[text()='Back']"
        functionDelay="3000"       
        />

--- On Fri, 3/20/09, jameleon-users@... <jameleon-users@...> wrote:

From: jameleon-users@... <jameleon-users@...>
Subject: Re: [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: Friday, March 20, 2009, 10:10 AM

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


-----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

Parent Message unknown Re: Jameleon / Jiffie click-html-element problem when next jsp page frame name is same

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

Reply to Author | View Threaded | Show Only this Message

this might not be a problem with jameleon/jiffie after all... i spend the day on #watir irc with the watir gurus and couldn't get any further with watir either. the objects/element can be view from IE Developer Toolbar somehow couldn't click on it.

--- On Fri, 3/20/09, jameleon-users@... <jameleon-users@...> wrote:

From: jameleon-users@... <jameleon-users@...>
Subject: [Jameleon-users] Jameleon / Jiffie click-html-element problem when next jsp page frame name is same
To: jameleon-users@..., "Christian Hargraves" <engrean@...>
Date: Friday, March 20, 2009, 10:46 AM

ok so just noticed something strange: jiffie plugin, click-html-element, it will click on button element that exist when frame is first loaded, then after I've clicked submit then arrived at next jsp page with same frame name (of course jsp page source is now a different page), i try click on a button on the new page, jameleon give error:

Error Message: No matching element was found while trying to click on a 'null' html element!

but if from that new page, if i click on a button element with same name that existed before then it clicked OK.

how can I tell jameleon/jiffie to look for new xpath of new page when frame name is same?


at 2nd jsp page if click Next failed, if click Back then OK, this is my xpath src:
    <jm:ie-click-html-element functionId="Click Next"
        frameName="header,detail,detail"
        xpath="//A[text()='Next']"
        functionDelay="3000"       
        />

    <jm:ie-click-html-element functionId="Click Back"
        frameName="header,detail,detail"
        xpath="//A[text()='Back']"
        functionDelay="3000"       
        />

--- On Fri, 3/20/09, jameleon-users@... <jameleon-users@...> wrote:

From: jameleon-users@... <jameleon-users@...>
Subject: Re: [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: Friday, March 20, 2009, 10:10 AM

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


-----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


-----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