← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264573]: Issue with uploading

 

Question #264573 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264573

    Status: Answered => Open

Vineeth is still having a problem:
Thank you for helping me..But still i cant get the result..

After clicking web element "d"  its opening a file explore and i need choose file from there.
So i am giving a path in the "Filename" area and i need click on the "Open" button .
plzz help me.

driver.manage().window().maximize();
		   WebElement d = driver.findElement(By.id("photo"));
				   d.click();
				   Thread.sleep(5000);
				   
				   Screen s = new Screen();
				   App.focus("File Explorer");
				   Region reg = Region(3,0,687,482);
				   reg = App.focusedWindow();
				   
				   Pattern m_dropdown = new Pattern("D:\\Sikuli_Image\\file_name_path.png");
				   reg.wait (m_dropdown, 3);
				    s.type("C:\\Users\\vinumonp\\Desktop\\Bug");

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