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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Thanks for your help Omer.