← Back to team overview

sikuli-driver team mailing list archive

[Question #217868]: How to recognized 2 identical controls on page?

 

New question #217868 on Sikuli:
https://answers.launchpad.net/sikuli/+question/217868

Hello All,

I am new to Sikuli. I am using sikuli Jar with selenium web driver. I need to automate file upload control available on page. problem is that I have two file upload on same page.

EX:

1. Resume Upload : <File Upload Control>
2. Sample Upload : <File Upload Control>

                        s.click("E://Test Data//Resume.png", 0);   // IMAGE FOR RESUME UPLOAD (JUST TAKEN IMAGE OF UPLOAD CONTROL)
			s.wait("E://Test Data//WaitPopup.png");
			s.click("E://Test Data//Textbox.png", 0);
			s.type(null, "E:/Test Data/Textbox.png", 0); // SELECT FILE TO UPLOAD
			s.click("E://Test Data//Open.png", 0);

I would like to automate RESUME file upload. when I run script using SIKULI IDE it is running fine but when I run script using Selenium TestNG, it is recognizing "Sample" file upload instead of "Resume" file upload.

PLEASE HELP ME OUT HOW SIKULI DIFFER SAME ELEMENTS ON PAGE.

LET ME KNOW IF ANY DETAILS NEEDED. APPRECIATED ALL YOUR HELP.

- PRIYANK


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.