sagarpabba / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Implement SikuliWebDriver element finding as a "By" subclass #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The mechanism that webdriver supplies for extending the set of locators it can 
use is to subclass the By class. It would be nice if sikuli-webdriver 
implemented this:

public class BySikuli {
  public static By byImage(final String url) {
    return new By() {
      public WebElement findElement(SearchContext context) {
        // Sikuli magic here
      }

      public List<WebElement> findElements(SearchContext context) {
        // Sikuli magic here
      }
    }
  }
}

It could then be used like so:

driver.findElement(byImage(myUrl));

Original issue reported on code.google.com by simon.m.stewart on 31 Jan 2013 at 10:50

GoogleCodeExporter commented 9 years ago
Agree with Simon. this feature is a must.

Original comment by sunalps2...@gmail.com on 6 May 2013 at 6:56

GoogleCodeExporter commented 9 years ago
use Selenium WebDriver instead:
http://docs.seleniumhq.org/docs/03_webdriver.jsp

Original comment by miglecz on 24 Jul 2013 at 11:01

GoogleCodeExporter commented 9 years ago
Comment #2 makes no sense, you'd still have to extend WebDriver for this, makes 
sense for the "extension" to be part of SikuliFirefoxDriver/SikuliWebDriver 
than a separate project or part of WebDriver.

Original comment by manga...@gmail.com on 30 Apr 2014 at 10:56