Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
Hi,
I am the new user of WatiN/AXE. I am working for Organization Art at MART Pro-Service Solutions. 1. I am using Axe and WatiN . I tried to map a Custom function for that I entered ” value =ac.MyElementExists(ie.Element(AxeIntWatiN.GetConstraint(“&properties&”)))” syntax in Command column in ActionMap file in Axe but while build the test in AXE then it is displaying an error like :- “DTT_Login_0006.cs(48,23): error CS1502: The best overloaded method match for 'OdinTechnology.Axe.IntWatiN.Browser.Element(string)' has some invalid arguments DTT_Login_0006.cs(48,34): error CS1503: Argument '1': cannot convert from 'WatiN.Core.AttributeConstraint' to 'string' 0/1 test(s) built and compiled successfully PostBuild completed with errors. Error code=1 Please let me know how I can fix it. 2 The Message Boxes automatically handle by WatiN so please let me know if I want to verify the message box is popup or not and I also want to check the text on appear it. How can we do those verification in Axe and WatiN . Please let me know if you have nay issues. Thansk Srikanth
Hi Srikanth,
Re your line: value = ac.MyElementExists(ie.Element(AxeIntWatiN.GetConstraint(“&properties&”))) This because the ie.Element() method takes a string e.g. "id=userName" but you are passing in the result of AxeIntWatiN.GetConstraint which returns a WatiN AttributeConstraint. This is of course assuming that 'ie' is an instance of the Axe Browser class. So your code should probably be: value = ac.MyElementExists(ie.Element(“&properties&”)) See the Axe WatiN Integration Guide for more detail on creating custom actions. The documentation also answers your second question. Sam |