Not able to hit link which is present inside DIV tag using Watij Plugin

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

Not able to hit link which is present inside DIV tag using Watij Plugin

by namit jain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

I am using Watij plugin and I need to click on a link which is defined in DIV tag. Below is the HTML

<div id="createContent">
<h2>Create Content:</h2>
<ul class="items">
<li>
New Stylesheet
</li>

The link is displayed as New Stylesheet on the webpage. I tried using the text,url, href  in <watij-click> and <watij-click-link> tags but it says that link does not exist.
Please let me know how to click this link.

Thanks a lot
Namit

Re: Not able to hit link which is present inside DIV tag using Watij Plugin

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

Reply to Author | View Threaded | Show Only this Message


Please provide the CSS for class items and provide the script you tried with watij-click.



----- Original Message ----
From: "jameleon-users@..." <jameleon-users@...>
To: jameleon-users@...
Sent: Tuesday, July 28, 2009 5:00:30 AM
Subject: [Jameleon-users] Not able to hit link which is present inside DIV tag using Watij Plugin


Hi All

I am using Watij plugin and I need to click on a link which is defined in
DIV tag. Below is the HTML

<div id="createContent">
<h2>Create Content:</h2>
<ul class="items">
<li>
/?pid=item&mode=create&itemTypeKey=stylesheet New Stylesheet
</li>

The link is displayed as New Stylesheet on the webpage. I tried using the
text,url, href  in <watij-click> and <watij-click-link> tags but it says
that link does not exist.
Please let me know how to click this link.

Thanks a lot
Namit
--
View this message in context: http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24697053.html
Sent from the jameleon-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users

Re: Not able to hit link which is present inside DIV tag using Watij Plugin

by namit jain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot for your reply. While looking into this problem I found that Jameleon is not able to reach to the page on where this link exists. This happened because it is not able to select some value in drop down on previous page because of which the desired page is not displayed. Here I am facing other problem of selecting value in drop down
I added below tags but of no use. It is saying that "text not found"

The tags that I am using is

<watij-set-select-list
        functionId="Select AVP"
        how="id"
        what="userAppId"
        selectValue="14"/>

or

I tried the below tag also
<watij-set-select-list
        functionId="Select AVP"
        how="id"
        what="userAppId"
        select="avp"/>

The drop down's property is as mentioned below
<select id="userAppId" name="userAppId">
<option value="62">avp</option>
<option value="62">baseball</option>
</select>
jameleon-users mailing list wrote:

Please let me know if I am doping something wrong

Thanks a lot
Namit


----- Original Message ----
From: "jameleon-users@lists.sourceforge.net" <jameleon-users@lists.sourceforge.net>
To: jameleon-users@lists.sourceforge.net
Sent: Tuesday, July 28, 2009 5:00:30 AM
Subject: [Jameleon-users] Not able to hit link which is present inside DIV tag using Watij Plugin


Hi All

I am using Watij plugin and I need to click on a link which is defined in
DIV tag. Below is the HTML

<div id="createContent">
<h2>Create Content:</h2>
<ul class="items">
<li>
/?pid=item&mode=create&itemTypeKey=stylesheet New Stylesheet
</li>

The link is displayed as New Stylesheet on the webpage. I tried using the
text,url, href  in <watij-click> and <watij-click-link> tags but it says
that link does not exist.
Please let me know how to click this link.

Thanks a lot
Namit
--
View this message in context: http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24697053.html
Sent from the jameleon-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jameleon-users

Re: Not able to hit link which is present inside DIV tag using Watij Plugin

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

Reply to Author | View Threaded | Show Only this Message


I noticed that I don't have any tests for the "id" how. Try using how="name" instead.

-Christian



----- Original Message ----
From: "jameleon-users@..." <jameleon-users@...>
To: jameleon-users@...
Sent: Wednesday, July 29, 2009 12:02:25 AM
Subject: Re: [Jameleon-users] Not able to hit link which is present inside DIV tag using Watij Plugin


Thanks a lot for your reply. While looking into this problem I found that
Jameleon is not able to reach to the page on where this link exists. This
happened because it is not able to select some value in drop down on
previous page because of which the desired page is not displayed. Here I am
facing other problem of selecting value in drop down
I added below tags but of no use. It is saying that "text not found"

The tags that I am using is

<watij-set-select-list
    functionId="Select AVP"
    how="id"
    what="userAppId"
    selectValue="14"/>

or

I tried the below tag also
<watij-set-select-list
    functionId="Select AVP"
    how="id"
    what="userAppId"
    select="avp"/>

The drop down's property is as mentioned below
<select id="userAppId" name="userAppId">
<option value="62">avp</option>
<option value="62">baseball</option>
</select>

jameleon-users mailing list wrote:

>
>
>
> Please let me know if I am doping something wrong
>
> Thanks a lot
> Namit
>
>
> ----- Original Message ----
> From: "jameleon-users@..."
> <jameleon-users@...>
> To: jameleon-users@...
> Sent: Tuesday, July 28, 2009 5:00:30 AM
> Subject: [Jameleon-users] Not able to hit link which is present inside DIV
> tag using Watij Plugin
>
>
> Hi All
>
> I am using Watij plugin and I need to click on a link which is defined in
> DIV tag. Below is the HTML
>
> <div id="createContent">
> <h2>Create Content:</h2>
> <ul class="items">
> <li>
> /?pid=item&mode=create&itemTypeKey=stylesheet New Stylesheet
> </li>
>
> The link is displayed as New Stylesheet on the webpage. I tried using the
> text,url, href  in <watij-click> and <watij-click-link> tags but it says
> that link does not exist.
> Please let me know how to click this link.
>
> Thanks a lot
> Namit
> --
> View this message in context:
> http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24697053.html
> Sent from the jameleon-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jameleon-users mailing list
> Jameleon-users@...
> https://lists.sourceforge.net/lists/listinfo/jameleon-users
>
>
>
>     
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jameleon-users mailing list
> Jameleon-users@...
> https://lists.sourceforge.net/lists/listinfo/jameleon-users
>
>

--
View this message in context: http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24712968.html
Sent from the jameleon-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users

Re: Not able to hit link which is present inside DIV tag using Watij Plugin

by namit jain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christian,

I tried with how="name" but it did not work. I will give it some more thoughts and will let you know if it works

Thanks a lot
Namit
jameleon-users mailing list wrote:
I noticed that I don't have any tests for the "id" how. Try using how="name" instead.

-Christian



----- Original Message ----
From: "jameleon-users@lists.sourceforge.net" <jameleon-users@lists.sourceforge.net>
To: jameleon-users@lists.sourceforge.net
Sent: Wednesday, July 29, 2009 12:02:25 AM
Subject: Re: [Jameleon-users] Not able to hit link which is present inside DIV tag using Watij Plugin


Thanks a lot for your reply. While looking into this problem I found that
Jameleon is not able to reach to the page on where this link exists. This
happened because it is not able to select some value in drop down on
previous page because of which the desired page is not displayed. Here I am
facing other problem of selecting value in drop down
I added below tags but of no use. It is saying that "text not found"

The tags that I am using is

<watij-set-select-list
    functionId="Select AVP"
    how="id"
    what="userAppId"
    selectValue="14"/>

or

I tried the below tag also
<watij-set-select-list
    functionId="Select AVP"
    how="id"
    what="userAppId"
    select="avp"/>

The drop down's property is as mentioned below
<select id="userAppId" name="userAppId">
<option value="62">avp</option>
<option value="62">baseball</option>
</select>

jameleon-users mailing list wrote:
>
>
>
> Please let me know if I am doping something wrong
>
> Thanks a lot
> Namit
>
>
> ----- Original Message ----
> From: "jameleon-users@lists.sourceforge.net"
> <jameleon-users@lists.sourceforge.net>
> To: jameleon-users@lists.sourceforge.net
> Sent: Tuesday, July 28, 2009 5:00:30 AM
> Subject: [Jameleon-users] Not able to hit link which is present inside DIV
> tag using Watij Plugin
>
>
> Hi All
>
> I am using Watij plugin and I need to click on a link which is defined in
> DIV tag. Below is the HTML
>
> <div id="createContent">
> <h2>Create Content:</h2>
> <ul class="items">
> <li>
> /?pid=item&mode=create&itemTypeKey=stylesheet New Stylesheet
> </li>
>
> The link is displayed as New Stylesheet on the webpage. I tried using the
> text,url, href  in <watij-click> and <watij-click-link> tags but it says
> that link does not exist.
> Please let me know how to click this link.
>
> Thanks a lot
> Namit
> --
> View this message in context:
> http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24697053.html
> Sent from the jameleon-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jameleon-users mailing list
> Jameleon-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jameleon-users
>
>
>
>     
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jameleon-users mailing list
> Jameleon-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jameleon-users
>
>

--
View this message in context: http://www.nabble.com/Not-able-to-hit-link-which-is-present-inside-DIV-tag-using-Watij-Plugin-tp24697053p24712968.html
Sent from the jameleon-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jameleon-users mailing list
Jameleon-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jameleon-users