hitchtest / hitchselenium

Plugin to run Selenium with firefox using the Hitch testing framework.
GNU Affero General Public License v3.0
1 stars 2 forks source link

wait_to_appear with id containing a space #5

Closed geokala closed 8 years ago

geokala commented 8 years ago

When an ID contains a space it appears that there is no way to wait for it to appear using wait_to_appear.

It would be good if there was a way to wait_to_appear for IDs with spaces in.

crdoconnor commented 8 years ago

According to the HTML4/5 specs, spaces aren't considered valid in HTML IDs:

https://stackoverflow.com/questions/70579/what-are-valid-values-for-the-id-attribute-in-html

Were you trying to put spaces in your IDs in order to make your tests look cleaner/more readable?

geokala commented 8 years ago

Ah, interesting. I didn't realise that, and firefox didn't complain. I'll have to have a dig.

I'm creating some tests to confirm expected behaviour with various input (e.g. various special characters, etc).

Given that it's going against spec, I'll have to dig and see what's happening under the hood. I suspect it's a case of the browser being more permissive than it should be.

Either way, not an issue with your plugin!