sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31978
Re: [Question #265760]: How to automate with pictures
Question #265760 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265760
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
Yes, windows pop-ups are a problem for Selenium. It can't handle them as
they are not a part of the browser which Selenium interacts with. There
is a way however to make it work in many case. You just have to find an
element and type in the path of the file you want to attach. Not sure
what language you are using but Java example is:
WebElement upload = driver.findElement(By.id("myfile"));
upload.sendKeys("/Path/dir1/dir2/fileToAttach.jpg");
driver.findElement(By.id("submit")).click();
If there is no way to do that with pure Selenium then yes, you can use
Sikuli to solve that problem. To give a specific example however, more
details are needed. For example, what language you are using.
In any case, that is a very basic Sikuli task and I am sure you will
quickly get the idea from briefly viewing the documentation on Sikuli
website.
Cheers,
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.