selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

"Window Handle Name" instead of windowHandleName in .side project

Open webrod opened this issue 1 year ago • 4 comments

🐛 Bug Report

When you manually enter a window handle, the IDE saves with the wrong attribute name. It sets in the project.side file: "Window Handle Name": "win1066" instead of "windowHandleName": "win1066",

To Reproduce

image then save the project

Expected behavior

the IDE should save: "windowHandleName": "win1066" And when you run, it should switch focus to the new window to take action on.

Current behavior

the IDE saves: "Window Handle Name": "win1066" image

Project file reproducing this issue (highly encouraged)

new-win-repro.zip

Environment

OS: Windows 11 Selenium IDE Version: 4.0.1-beta.14

Browser: Browser Version: I use the IDE...

webrod avatar Sep 28 '24 21:09 webrod

I am unable to replicate this issue with the current Selenium IDE version.

Steps I tried:

  1. create new ide project
  2. enter https://google.com as website
  3. start recording
  4. search test in google
  5. click first link
  6. close
  7. add new window configuration to click command
  8. check "New Window Configuration Enabled
  9. enter "win1066" as Window Name
  10. Confirm
  11. Save Project
  12. Check created .side file for issue

shbenzer avatar Oct 09 '24 14:10 shbenzer

Can you please tell me which exact version you tested to be sure?

webrod avatar Oct 09 '24 15:10 webrod

Can you please tell me which exact version you tested to be sure?

My apologies. I was testing in a much earlier version it seems (3.17), I can recreate it now in current dev

shbenzer avatar Oct 09 '24 16:10 shbenzer

I'm struggling to find the source of the added spaces, but this is also the first time I've ever looked at the ide code so it was never guaranteed... @toddtarsi you got any ideas?

shbenzer avatar Oct 18 '24 21:10 shbenzer