Danp2 / au3WebDriver

Web Driver UDF for AutoIt
MIT License
108 stars 23 forks source link

_WD_GetTable: Trim whitespace #522

Closed Danp2 closed 2 months ago

Danp2 commented 2 months ago

Pull request

Proposed changes

Use JS trim function to remove whitespace from textContent results

Checklist

Put an x in the boxes that apply. If you're unsure about any of them, don't hesitate to ask. We are here to help!
This is simply a reminder of what we are going to look for before merging your code.

Types of changes

Please check x the type of change your PR introduces:

What is the current behavior?

Array can contain test characters such as \n and \t

What is the new behavior?

All leading and trailing whitespace characters are removed from cell contents

Influences and relationship to other functionality

Describe how the changes will affect other functions, potential script breaking changes, etc.

Additional context

https://www.autoitscript.com/forum/topic/212230-whitespace-characters-showing-when-accessing-a-table-using-_wd_gettable

System under test

Please complete the following information.

Signed-off-by: Dan Pollak danpollak2@gmail.com