Capturing a button

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Capturing a button

Muaaz
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
Reply | Threaded
Open this post in threaded view
|

Re: Capturing a button

softwaretestingforum
Administrator
Could you post small HTML snippet of button and the error you encounter with above mentioned locators?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Capturing a button




Muaaz
<input class="standardButton" type="button" onclick="popupPickList()" value="Create Order & Print Pick List" name="createPrintPicklist">
Reply | Threaded
Open this post in threaded view
|

Re: Capturing a button

softwaretestingforum
Administrator
Your locator -

selenium.click("css=[name=createPrintPicklist]")

looks right, what is the error you encounter?
~ seleniumtests.com