Skip to content

WebElement.getText() does not return the correct value in case of comma separated numbers. #3384

Description

@ocindev

Meta -

OS: Windows 10 64-Bit
Selenium Version:
selenium-remote-driver-3.0.1
Browser:
Chrome

Browser Version:
Version 55.0.2883.87 m (64-bit)

Expected Behavior -

We have an td html element containing the text 0,29. After finding it via driver.findElement(By.xpath("xpath")) the call of the method WebElement.getText() should return 0,29 as string.

Actual Behavior -

The method WebElement.getText() returns 0.29 as string.

Steps to reproduce -

Try to find any html element containing a number as string (e.g 0,45) with the selenium remote driver. The call of WebElement.getText() will return a number as string separated with dots. Probably because of the internal framework conversion from json to webElement

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-firefoxJ-awaiting answerQuestion asked of user; a reply moves it to triage again

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions