Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

error in axe FindElement function when dealing with XPath

Axe 3.3, Webdriver (Selenium2)

The standard Action SeleniumCSharp.ActionMap contains a function 'FindElement' in _testSuffix

This function returns a WebDriver WebElement by splitting the object's properties using "=" as the delimiter

The problem with this is that when using XPath, there are 2 "=", as in the example below:
xpath=//input[@name='SubmitButton']

This results in the xpath being truncated at the second "="

The workaround I have generated is to replace:
                case "xpath":
                    return driver.FindElement(By.XPath(property[1]));

with
                case "xpath":
                    return driver.FindElement(By.XPath(property[1]+"="+property[2]));

Can you please update the standard SeleniumCSharp.ActionMap with either the above, or a different fix?

Do you maintain a list of known issues? Probably worth adding this to that list

Thanks

Mark
Mark Send private email
Thursday, September 6, 2012
 
 
Hi Mark,

Thanks very much for this feedback. I will raise a case in our work item system for this and it will be addressed in the next release. We run our development on a principle of fixing known bugs before providing new features, so it will be addressed.

Thanks again,

Duncan
Duncan Brigginshaw Send private email
Friday, September 7, 2012
 
 
Mark

I have come across this issue before. If you remove the 'xpath=' from the start of your object it does seem to work. This is a quirk of selenium from what I can work out.

Hope this helps

Jon
Jon Alsop
Tuesday, September 11, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics