yep. I literally just copied that code, ran it on a rubygems page. And got something back already Plus tbh, the data is more important than the image.
If the data says say 1% diff. We wouldn't care. If it said like 25% diff then we care.
WhereIsMySpoon
simonstewart: there is a StringReader
simonstewart
I know :)
But Readable and Reader are two different things
And it'd be nice if String implemented Readable.
Oh well
barancev-sl joined the channel
barancev-sl
not all strings are readable
ave, simonstewart!
kpschmidt joined the channel
simonstewart
When is a string not readable?
Ave, barancev-sl!
WhereIsMySpoon
when its full of NULs?
barancev-sl
when you can’t read it :)
WhereIsMySpoon
or other weird characters
im not sure how that means anything if there is just a StringReader that takes a string and reads it though
simonstewart
barancev-sl: it can't be filled with nulls. The underlying field in the Oracle JRE is an array of chars
WhereIsMySpoon
maybe its just when a string is null it isnt readable?
but then an array of chars can be null too
simonstewart
String implements a bunch of interfaces. Whether a variable is null or not won't change that....
barancev-sl
actually, it’s just a bad design decision, maybe dictated by legacy
simonstewart
barancev-sl: that feels more reasonable to me :)
barancev-sl
StringReader is Readable
simonstewart
Indeed
Was hoping to avoid having to create one. Oh well.
jmvanel joined the channel
jimevans joined the channel
diemol-sl has quit
manoj9788-sl has quit
douglasmpetti-sl has quit
mreznik has quit
cdbattags has quit
abrusby-sl has quit
sanscoeur joined the channel
hazmeister-sl has quit
GodFather has quit
bpascal has quit
luke-sl has quit
barancev-sl has quit
jmvanel has quit
Alstr joined the channel
Alstr
Hello. I am using Cucumber, Watir, and Selenium
I have a test to click a link and I expect there to be no response, how can I write a test like this?
I have a statement that says
when I navigate to the home page, then I wait for the "X" element to be present, when I click the "X" element....
then I'm not sure how to follow that up
WhereIsMySpoon
Alstr: you expect clicking the link to do absolutely nothing?
cgoldberg-sl joined the channel
Alstr
yes
simonstewart has quit
cgoldberg-sl
sounds like a useful link!
WhereIsMySpoon
Alstr: can you go and ask your web devs why they've put a non functional link on the page?
What if a user clicks it
Then they click it some more
Alstr
its non functional on desktop
WhereIsMySpoon
Then theyre frustrated it doesnt work
Alstr
but functional on mobile
WhereIsMySpoon
And leave your site
what
*facedesk*
Alstr
its a phone number link
the business requested that it does nothing when viewing on desktop
WhereIsMySpoon
go tell your devs to hide it on desktop then? and make it a span with the number instead?
so make it a <span>0777777777777</span> instead of a link
Alstr
Thanks for the advice, but in this case the work is done and I need to make a regression test
simonstewart joined the channel
changing it just creates more work
WhereIsMySpoon
*boggle*
Alstr
not saying its a good solution
some of the other devs here are frustrated with the decision as well
WhereIsMySpoon
how much work could it be to change one goddamn link and put a class on it or something and hide/show with css
-_-
Alstr: Im not sure there's much -to- test here. I mean when you click it on mobile, it will be an OS-specific dialog that pops up to call
simonstewart
Be zen, WhereIsMySpoon
Testing for something _not_ to happen can be tricky
Is there some marker that the link does nothing on desktop?
WhereIsMySpoon
does the link have an attribute on mobile it doesnt on desktop?
but then again that isnt an e2e test
simonstewart
Question: what is now approximately 1 million degrees and on my lap?
WhereIsMySpoon
that should be a js unit test
simonstewart: the sun
simonstewart
Answer: this laptop I've just rebooted
WhereIsMySpoon
close enough
simonstewart
But I'll take "the sun" as being about right
WhereIsMySpoon
:D
TheSchaf joined the channel
jmvanel joined the channel
jimevans
ohai, simonstewart!
simonstewart
G'day jimevans!
How're you?
jimevans
so i asked this as a general question the other day, but i wanted to run it by you. what do you think about getting a legit ssl cert for the test web server started up for running selenium tests?
simonstewart: i'm better, thanks.
simonstewart
jimevans: how would we stop people abusing the cert?
jimevans
no idea. i don't even know if it's practical.
simonstewart
And how would people run historical tests?
Once the cert expires
sanscoeur joined the channel
I think it's a great idea. I don't think it's practical
What we _could_ do is have a proper site somewhere which never changes (or only has pages added) with a valid cert
And probe for Net connectivity before running tests that use it
jimevans
given that some driver implementations don't support self-signed certs (at all), it would be nice to be able to test some things that require ssl certs (like secure cookie tests)
simonstewart
See above :)
(I guess you were typing at the same time as me)
jimevans
hah! likely so.
freefork_afk is now known as freestyledork
jmvanel has quit
simonstewart
(I'm in an odd mood today)
(Not bad, just odd)
KaL has quit
jimevans
i spent the long weekend auditing the .NET test suite for selenium.
help! i can access a button and do button.click() but it seems to have no effect...any ideas why?
(When I click button w/ mouse OUTSIDE of Selenium it works..but the .click() seems to have no effect in Selenium...Why is that?)
i did proper waiting too
what is worse...i don't get an error...selenium just silently passes
jimevans
theseb: all browsers? just one browser? what else have you tried?
WhereIsMySpoon
^ this and also its possible the element you're clicking isnt the one you want to, perhaps your selector isnt unique or maybe the html is misleading and the click event is on a lower/higher level element
hazmeister-sl
theseb, this is typically means you are sending `.click` to the wrong element
with javascript the click handler could be anywhere
theseb
jimevans: i'm on FF..i printed button.text to confirm i was on right button..there are 3 and this is only one with right text
ok..assuming i should be sending click to somewhere else..how find that out?
hazmeister-sl
if you are lucky, you may find the event listner tab helpful in the browser tools
WhereIsMySpoon
if you try to .click() the element in the browser console, does it work?
WhereIsMySpoon: how do .click in Firefox console? is that what you meant?
WhereIsMySpoon
yes, try and run .click() on the elemnt in the console
GodFather joined the channel
theseb: how do I get to the page you're on?
hazmeister-sl
right click on the element you are locating, and choose `Use in Console` which should add `temp0` into the console for you change that to temp0.click()