Manual and Automated Testing
›
Selenium RC (aka Selenium 1.0)
Search
everywhere
only in this topic
Advanced Search
Capturing a button
Classic
List
Threaded
♦
♦
Locked
4 messages
Muaaz
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Capturing a button
hi ,
There is simple button to be click on , but it is not simple thing as we except , i used several method of capturing as following ,
01 . selenium.click("//table[2]/tbody/tr[2]/td/input")
02. selenium.click("css=[name=createPrintPicklist]")
03.selenium.clickAt("//table[2]/tbody/tr[2]/td/input" , "css=[name=createPrintPicklist]")
04. also created a selenium.focus("//table[2]/tbody/tr[2]/td/input") and tried to click the button
above methods are failed to be capture unfortunately , is there any other workaround to accomplish ,
Please help me
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Capturing a button
Administrator
Could you post small HTML snippet of button and the error you encounter with above mentioned locators?
~ seleniumtests.com
Muaaz
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Capturing a button
<input class="standardButton" type="button" onclick="popupPickList()" value="Create Order & Print Pick List" name="createPrintPicklist">
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Capturing a button
Administrator
Your locator -
selenium.click("css=[name=createPrintPicklist]")
looks right, what is the error you encounter?
~ seleniumtests.com
Free forum by Nabble
Edit this page