Re: A problem with clicking a photo with a link

Manish Ranade <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <CAHm3MGPMqo0j+uMHr=_nHagUkZA8KXQ6B2ng3rp0+zS6bwzNNQ@mail.gmail.com>
Hi Juho,

I dont see "href" attribute set on the link in your example. Are you
sure thats not causing the issue?

-Manish

On Mon, Mar 12, 2012 at 6:36 AM, mascis <[email protected]> wrote:
>
> Hi,
>
> I have a page that contains several photos with links to external pages. The
> links are in form:
>
> <li id="preSelectedPage-Page1" class="pre-selected-pages">
> < a id="page1">
> < img alt="PAGE1" src="/images/pages/page1.png">
> < /a>
>
> I have tried these:
>
> <clickElement htmlId = "preSelectedPage-Page1" />
> <clickElement htmlId = "page1" />
> <clickElement xPath="id('preSelectedPage-Page1')/a/img" />
> <clickElement xPath="id('preSelectedPage-Page1')/img"  />
>
> with sleep command. All of these seem to work fine, but Webtest don't go to
> the next page. Error.log of our servers should have a notion if someone
> clicks those links and there is nothing when I run my tests so it seems that
> those links are not cliked for some reason even the result page says they
> are. ClickLink and clickButton are not working. Any ideas what might be
> wrong?
>
> Thanks,
>
> - Juho
> --
> View this message in context: http://old.nabble.com/A-problem-with-clicking-a-photo-with-a-link-tp33486525p33486525.html
> Sent from the WebTest mailing list archive at Nabble.com.
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest



-- 
Regards,
Manish Ranade
Phone: 408-596-6546
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.