Signature issue under Mobile Automation


#1

HI i am facing one issue , need to automate Signature pad . we have a one option where we need to do signature for approval . But there is no locators for that field’s , so please help me out how can i pass signature in signature pad to move further step .

please follow screen shot and locators.

please do need full help


#2

Try with his parent (whose ID I can not see on the screenshot) like this:

driver.findElement(By.id("parentsID")).findElement(By.className("android.view.View"));

#3

sure
i will try and get back to you


#4

hi can you please suggest me how to create signature on signature pad under appium.


#5

I’m not sure how and if that is possible. Also I would need to know how does the pad work. You can put your signature just by writing on a screen by touch?

In that case you should use Touch actions:

http://appium.io/docs/en/writing-running-appium/touch-actions/

Also check if this article is in any help:


#6

Thank you , i will check let you know


#7

Hi Rohit were u able to perform Signature if yes can u please share ur logic…

Thanks
VS


#8

Hi , currently i am not using signature i spoke with my developer they made it Un-mandatory


#9

Np @rohit1 I did manage to draw a line …


#10

is it please can you suggest me how you did …


#11

First get the centre SignPad.getCenter() and store in variable Point class
get int.x,int.y,
for newx, newy add some intx+5 and inty+5
Perform touch that is move from x,y to newx,y

Try once…