Re: [Watin-development] Patch to find field elements by near by text
Brought to you by:
jvmenen
From: Ashar S. <as...@av...> - 2007-11-30 17:42:52
|
I3JlZ2lvbiBXYXRpTiBDb3B5cmlnaHQgKEMpIDIwMDYtMjAwNyBKZXJvZW4gdmFuIE1lbmVuDQoN Ci8vQ29weXJpZ2h0IDIwMDYtMjAwNyBKZXJvZW4gdmFuIE1lbmVuDQovLw0KLy8gICBMaWNlbnNl ZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsN Ci8vICAgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRo IHRoZSBMaWNlbnNlLg0KLy8gICBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2Ug YXQNCi8vDQovLyAgICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0y LjANCi8vDQovLyAgIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQg dG8gaW4gd3JpdGluZywgc29mdHdhcmUNCi8vICAgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vu c2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gIkFTIElTIiBCQVNJUywNCi8vICAgV0lUSE9VVCBXQVJS QU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxp ZWQuDQovLyAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVy bmluZyBwZXJtaXNzaW9ucyBhbmQNCi8vICAgbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2Uu DQoNCiNlbmRyZWdpb24gQ29weXJpZ2h0DQoNCnVzaW5nIFN5c3RlbS5Db2xsZWN0aW9uczsNCnVz aW5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