What action should occur after you click the element? Notice that if
there's a page load, you need to call wait_for_page_to_load yourself.
Adding new keywords to SeleniumLibrary that wrap clickAt and
doubleClickAt Selenium methods would probably be pretty simple. Please
submit an enhancement request to Selenium's tracker. There's probably
going to be SeleniumLibrary 2.6.1 soon.
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
On Tue, Apr 26, 2011 at 10:44 AM, tmpalaniselvam
<palani...@gmail.com> wrote:
> I have extended SeleniumLibrary for clickAt and doubleClickAt. But it
> is not working and also tried out Call Selenium API directly... Test
> results (log.html) is showing as PASS, but object is not clicked.
> Similarly anybody faced the issue?. For time-being, I'm using
> AutoItLibrary keywords as temporary solution.
>
>
> Call Selenium API clickAt //nobr[contains(text(),"Actimel")] 10,5
> Call Selenium API click_at xpath=//nobr[contains(text(),"Actimel")]
> 10,5
> Call Selenium API click_at //nobr[contains(text(),"Actimel")] 10,5
> Call Selenium API double_click_at ${objMember} 10,5
>
The fact that the test pass means that the component is found and the
selenium method gets successfully executed, so this seems a bit weird.
What is the expected result of clicking the element? Have you tested
this with different browsers?
--J
--
Janne Härkönen | http://reaktor.fi
http://twitter.com/#!/janneharkonen
Could you test with Firefox? You mentioned earlier that this works
with Selenium IDE which, if I remember correctly, works on with
Firefox and I wouldn't be surprised if it would work there also with
SeleniumLibrary.
Ok. This sounds like a Selenium or environment related issue that we
cannot do anything in SeleniumLibrary.
Notice that SeleniumLibrary now supports clickAt. Instead of adding a
new keyword we changed existing Click Element so that it takes
optional coordinates as an argument. We'll also add Double Click
Element keyword. The release will most likely be ready on Monday.