It’s been a few years since I last did python - am I right in thinking it’s possible to provide a better message when the exception is raised?
WhereIsMySpoon
thats the java exception trying to use the clickable EC on something that doesnt exist
it tells you exactly whats wrong
peter-sl1 joined the channel
noob-einsteinsfo
Emm. Idk if you're serious or not, WhereIsMySpoon. :P You think that's readable?
WhereIsMySpoon
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"id","selector":"asdkjhasdjkhkauifgweiuf234"}
yes?
read a few lines and its obvious
noob-einsteinsfo
Yeeea. And it might be useful for harder problems.
So I'll try to make something that returns my exceptions as output and native exceptions writes to log file.
WhereIsMySpoon
you could just write some wrappers, like an EC clickable wrapper that runs the EC clickable class, and does a try-except around it catching no such element exceptions only
bertlamb-sl joined the channel
noob-einsteinsfo
I'll google now how to change exception's message and then how to make new exception type.
WhereIsMySpoon
and outputs a special message on those
and anything else it propagates the exception up
im off
home time
noob-einsteinsfo
Thanks for helping.
denys-stoiano-sl has quit
kristianmeier-sl has quit
Milencho joined the channel
brentlavelle-sl has quit
NOTICE: [13docs] 15hazmeister opened pull request #112: Reduced references to Selenium RC (06gh-pages...06reduce-rc-references) 02https://github.com/SeleniumHQ/docs/pull/112
grapheti_ has left the channel
alan-baird-sl joined the channel
pnaranja-sl has quit
brupoo-sl has quit
oida has quit
dmcnulla-sl joined the channel
peter-sl1 has quit
peter-sl1 joined the channel
pmneve-sl joined the channel
bertlamb-sl has quit
oida joined the channel
krishna-sl joined the channel
tommywo-sl joined the channel
denys-stoiano-sl joined the channel
peter-sl1 has quit
brentlavelle-sl joined the channel
alan-baird-sl has quit
pnaranja-sl joined the channel
brupoo-sl joined the channel
peter-sl1 joined the channel
ninsei
I am looking for some resources on the proper way to inject the IWebDriver class using an IoC container.
Hello guys, I want to get updated html from a page every 5min, what's the best way to do it, I thought about opening the page and keep comparing the source when there's a change somehow substract the two sources
My question is about selenium webdriver, is this the appropriate place to ask such a question?
Talg has quit
tk8817-sl joined the channel
Is there someone here?
brentlavelle-sl joined the channel
alan-baird-sl has quit
justin8766
im not sure what your asking
travisl-sl joined the channel
psy123
I have a web page, that gets updated every 5min, the same html with few changes in text
I want to print the changed text
how would you do it?
justin8766
just like printing a diff of the page source to the old page source every 5 minutes?