Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1644 by fbost...@gmail.com: Locators use downcased xpath, fails
in Chrome
http://code.google.com/p/robotframework/issues/detail?id=1644
Using Robot Framework 2.8.3 (Python 2.7.6 on win32)
I'm utilising the "Radio Button Should Be Set To" like so:
Radio Button Should Be Set To basic.oneWay true
Note the capital W in oneWay. This is apparently transformed to a lower
case xpath expression:
ERROR: Element xpath=//input[@type='radio' and @name='basic.oneway' and
(@value='true' or @id='true')] not found.
I don't know if this is a problem in any other browsers than Google Chrome
(version 32.0). I tried to duplicate the error manually by opening the
console in Chrome and selecting the element using xpath, first case
sensitively, then case insensitively:
$x("//input[@name='basic.oneWay']")
[<input type="radio" class="radioPiece" name="basic.oneWay"
id="tripOneWaytrue" value="true" checked="checked">,<input
type="radio" class="radioPiece" name="basic.oneWay"
id="tripOneWayfalse" value="false">]
$x("//input[@name='basic.oneway']")
[]
As you can see, Chrome doesn't recognise case insensitive attribute names
in xpath expressions. The web page in question is http://www.vr.fi/.
Is this a problem with robotframework, selenium or python et co? Maybe the
framework should be updated to use case sensitive xpath expressions, or
even an option to make them case sensitive.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.