How to automate PIN Pad

148 views
Skip to first unread message

Adejumo Yusuf

unread,
Mar 31, 2014, 8:12:11 AM3/31/14
to seleniu...@googlegroups.com
I ran into another issue, just believe you will help me out.

I was trying to automate a site but got stuck in the PIN pad area.

When I clicked on the PIN input element, the element is in read only mode and can only accept value via mouse click. Note that the position of numbers on the PIN Pad changes at every refresh.

driver.findElement(By.id("confirmPin").sendKeys("1234"); 

Didn't work. Any way out.
Regards.

David

unread,
Apr 1, 2014, 6:44:20 PM4/1/14
to seleniu...@googlegroups.com
Is the site public? So we can take a look at the problem?

I would ask whether the PIN pad is a single element/image, or whether the buttons are individual images. If you can accurately define the buttons as individual elements (in XPath/CSS) regardless of their actual position, you can manipulate them with Selenium. If it's Flash, you're out of luck & need Flash support.

Nitin Lomte

unread,
Apr 1, 2014, 11:27:06 PM4/1/14
to seleniu...@googlegroups.com
can you check behavior of html behind the page it might help you..

Adejumo Yusuf

unread,
Apr 2, 2014, 5:12:53 AM4/2/14
to seleniu...@googlegroups.com

@David Thanks,

It's a public website, here is the link: www.mypaga.com

The Login detail are as follow:
username: ibile
security Question: 4
Password: ibile4live
PIN: 1234

Just do any transaction like money transfer. You can also provide number(08036962666), amount(1000), Recipient's name(John Bull) and hit go button the the PIN Pad pops up. Remember that the position of numbers on the pad changes randomly.

Once again thanks for your assistant.

Cheers.


Krishnan Mahadevan

unread,
Apr 2, 2014, 5:18:46 AM4/2/14
to Selenium Users
This looks like a virtual keypad as seen here : https://www.citibank.co.in/ibank/login/IQPin1.jsp
The keypad is specifically constructed so that even if a user's machine did have some keystroke recorder, it would still not know what keys were pressed because the layout keeps changing.

I believe you are better off in talking to your dev folks and trying to get them to put in a back door entry in your test environment to get past this problem and perhaps use javascript to set values for this field alone.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bf2a28c1-d0cd-404b-86fb-617d03fc4f6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages