Menu

Does Qaliber use standard WatiN plugin?

Help
2010-11-23
2013-05-28
  • Cristy Harrison

    Cristy Harrison - 2010-11-23

    Hi,

    I would like to know if Qaliber uses the standard WatiN code, or if it uses it's own modified version?

    The reason I ask this is because I wanted to make a slight change to the WatiN code to make QAliber work for my scenario, but after downloading the latest version of the WatiN code to build I realised that methods that QAliber relies on were missing from the WatiN code.

    Specifically:  WatiN.Core.Native.INativeDocument.ElementFromPoint(int x, int y);

    And a few others I believe.

    Are these functions just in an older version of the WatiN source code? Or have QAliber modified the WatiN source code and added this function and possibly others?

    Thanks,

    Cristy

     
  • Homfri

    Homfri - 2010-11-24

    Yes we have modified Watin code by adding 2 simple implimentations
    To its INativeDocument interface:

    INativeElement ElementFromPoint(int x, int y);  implemented only for IEDocument:

    public INativeElement ElementFromPoint(int x,int y)
            {
                return new IEElement(htmlDocument.elementFromPoint(x, y));
            }

    (for Chrome document and FF which implements this interface override and throw notimplementedException)

    and INativeElement interface:  public Rectangle GetAbsElementBounds()

    implemented in IEElement:

    public Rectangle GetAbsElementBounds()
            {
                return GetHtmlElementAbsBounds(AsHtmlElement2);
            }

    We were hoping to get these interface change in WatiN code, but never got answer, so guess you'll have to add them this way for now…

    Thanks,
    Omer.

     
  • Cristy Harrison

    Cristy Harrison - 2010-11-26

    Thanks for your help Omer.

     

Log in to post a comment.