--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/49f301e8-7f66-4a3c-b72c-a9ce410f3753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ChromeDriver chromeDriver = new ChromeDriver();
long start = System.currentTimeMillis();
for (int i = 1; i < 100; i++) {
try {
chromeDriver.get("test.com");
} catch (WebDriverException ex) {
}
}
System.err.println("millis " + (System.currentTimeMillis() - start));
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/512df7c7-8dc8-488b-8899-95a003a8293d%40googlegroups.com.
1) That's exactly what we have implemented in ExpectedConditions (Java) -- use of "findElement" rather than "findElements". We can fix it, sure.
2) I bet many many people do the same, because it is not clear from findElement description that it has such a performance penalty. And who reads those description anyway.
3) How many people knows about this feature? Try to google "selenium screenshotexception" -- results are close to zero. But there are thousands of recommendations how to take screenshot on test failure, and no one of them recommends to use the screenshot already obtained in the exception. They just take another one!
4) How is it supposed to be used? Do all test frameworks (JUnit/NUnit/py.test/rspec/mocha/...) allow to examine the exception occured during test execution in a kind of @After-block? No. Should a user catch an exception in every test and examine and save the screenshot if present?
5) And it is present there *only* if it is a remote session. If you run test locally you have to implement taking screenshots on failure anyway. So they do it in local/remove agnostic manner.
My suggestion:a) disable this feature by default, because it is not very popular, but gives performance penalty to all users,
b) may be implement it for local runs too.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/49f301e8-7f66-4a3c-b72c-a9ce410f3753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/35b7ec88-c56e-4fc0-9c48-e9a96a939959%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsubscribe...@googlegroups.com.
After a heck a pause, replying. Inline.On Sun, Dec 25, 2016 at 9:08 AM, Alexei Barantsev <bara...@gmail.com> wrote:1) That's exactly what we have implemented in ExpectedConditions (Java) -- use of "findElement" rather than "findElements". We can fix it, sure.Let's fix it, then. Given the discussions around IDE, we can just leave that.2) I bet many many people do the same, because it is not clear from findElement description that it has such a performance penalty. And who reads those description anyway.That's why we write javadocs. And why things appear in stacktraces. We try and provide as much hand-holding as makes sense, but I think that there's a lot of value-add in making the screenshots available.3) How many people knows about this feature? Try to google "selenium screenshotexception" -- results are close to zero. But there are thousands of recommendations how to take screenshot on test failure, and no one of them recommends to use the screenshot already obtained in the exception. They just take another one!We should document this properly, then. Not remove the feature :)
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/49f301e8-7f66-4a3c-b72c-a9ce410f3753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/35b7ec88-c56e-4fc0-9c48-e9a96a939959%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/CAOrAhYHCsE4DPf_7L1REVAK5hToOJ2t06cPV%3DfMqiY3gsoBB2w%40mail.gmail.com.
On Thu, Jan 5, 2017 at 7:46 AM Simon Stewart <simon.m...@gmail.com> wrote:After a heck a pause, replying. Inline.On Sun, Dec 25, 2016 at 9:08 AM, Alexei Barantsev <bara...@gmail.com> wrote:1) That's exactly what we have implemented in ExpectedConditions (Java) -- use of "findElement" rather than "findElements". We can fix it, sure.Let's fix it, then. Given the discussions around IDE, we can just leave that.2) I bet many many people do the same, because it is not clear from findElement description that it has such a performance penalty. And who reads those description anyway.That's why we write javadocs. And why things appear in stacktraces. We try and provide as much hand-holding as makes sense, but I think that there's a lot of value-add in making the screenshots available.3) How many people knows about this feature? Try to google "selenium screenshotexception" -- results are close to zero. But there are thousands of recommendations how to take screenshot on test failure, and no one of them recommends to use the screenshot already obtained in the exception. They just take another one!We should document this properly, then. Not remove the feature :)The feature shouldn't be removed, but it is a performance killer and should be disabled by default. We disabled it here back in 2012, and a quick search doesn't turn up anyone that has turned it back on.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/49f301e8-7f66-4a3c-b72c-a9ce410f3753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/35b7ec88-c56e-4fc0-9c48-e9a96a939959%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/CAOrAhYHCsE4DPf_7L1REVAK5hToOJ2t06cPV%3DfMqiY3gsoBB2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/CAChzDzmjL4NaMkKLYCf-Js6F7cPR%2Bei8Fxsj3gwaT03hd2ti7A%40mail.gmail.com.