I created a new machine environment for automation and installed the latest watir-webdriver. It is version 0.5.4. I found my running scripts on the new machine failed where I called:
Browser.element_by_xpath(......) my syntax usage is: # Find all the inputs that match the wildcard attribute sFld = 'fld_' + iPgCnt.to_s + '_' + iFldCnt.to_s sXpathString="//*[@id='" + sFld + "']" if Browser.element_by_xpath(sXpathString).exists? then ... get the attributes on the input control: ... It returns method unknown. Checking my other (working) configurations I had watir-webdriver version 0.4.1 Is element_by_xpath is it depreciated in watir-webdriver 0.5.4 and what would be the compatible alternative syntax to it that would exist in both the 0.4.1 and 0.5.4 versions? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
