#selenium

/

      • eugenmayer
        well i am, for development, under OSX. I am not sure i set the chrome binary location as an option for the jar or in the PHP code
      • The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/Chr....
      • i guess, i am looking for the latter one right?
      • WhereIsMySpoon
        driver != browser binary
      • eugenmayer
        yeah mixed that up
      • WhereIsMySpoon
        the driver is the driver, ie chromedriver, geckodriver, iedriver
      • browser is chrome, firefox, ie
      • jimevans
        eugenmayer: they're two different binaries. one is the driver, one is the browser itself.
      • strohalm joined the channel
      • eugenmayer
        not sure i downloaded the cromedriver already
      • WhereIsMySpoon
        you can as jim said just pass it into chromeoptions
      • webdriver.chrome.binary...i think
      • or there might just be a setBinary method on chromeoptions
      • eugenmayer
        ok let me try to sort things. For running a selenium browser test i need selenium-standalone.jar and for each browser a *driver and of course, the browser being installed. Right?
      • and when starting standalone, i tell it, where to find the driver(s)
      • rananda has quit
      • pi- has quit
      • were would i point myself as "RTFM" and would find the informations - i must missed that completely
      • peterjones has quit
      • using java -jar selenium-server-standalone-3.1.0.jar --help i cant see how to set the path to webdriver.chrome.driver .. is it -Dwebdriver.chrome.driver=<path> ?
      • stryx` joined the channel
      • jimevans
        eugenmayer: yes. exactly so. however, the -D<arg> *must* come before the -jar <jarpath> argument on the command line.
      • strohalm has quit
      • eugenmayer
        ok did that, one step further, still failing though. Lets google what this is
      • sanscoeur joined the channel
      • WhereIsMySpoon
        that will set the chromedriver path
      • which is *nothing* to do with the chrome binary path
      • eugenmayer
        i see that
      • that seems like a chromedriver issue. Hell is there one stable one?
      • jimevans
        2.9 is ancient.
      • lucast
        the ol version numbering confusion
      • jimevans
        we're up to 2.27, i think?
      • lucast
        mmhmm
      • avpp_ joined the channel
      • jlipps joined the channel
      • eugenmayer: in this case, 2.27 > 2.9
      • WhereIsMySpoon
        :D
      • eugenmayer
        hromedriver --version
      • Starting ChromeDriver (v2.9.248307) on port 9515
      • WhereIsMySpoon
        eugenmayer: that will never work
      • get 2.27
      • jimevans
        eugenmayer: you want 2.27, but it's not at the bottom of the download page.
      • because string sort-order.
      • eugenmayer
        i just did download the latest one?
      • WhereIsMySpoon
        nope
      • string ordering doesnt work for versioning
      • smccarthy-sl has quit
      • jimevans
        if you downloaded the link at the bottom of the list, then no, it's not the latest one.
      • eugenmayer
        ARG. thank you apache index.
      • eugenmayer facepalms.
      • WhereIsMySpoon
        :D
      • eugenmayer
        sorry guys.
      • lucast
        always check the LATEST_RELEASE file :)
      • eugenmayer
        That was utterly stupod.
      • WhereIsMySpoon
        ...quite
      • XD
      • sorry, the "stupod" got me
      • eugenmayer
        hehe, happily infected you :)
      • WhereIsMySpoon
        o nooooes..
      • eugenmayer
        works great!
      • avpp has quit
      • WhereIsMySpoon
      • latest release is at the top there :)
      • for next time
      • eugenmayer
        what are you guys using ( if any does php selenium tests ). I am on phpunit + facebook/webdriver (now the community branch..not master..me stupid). Are you guys using steward or codeception?
      • WhereIsMySpoon
        ew, php.
      • eugenmayer: just so you know, php are not officially supported bindings in the selenium world
      • the facebook bindings are good, but they arent in the official list that gets the standard selenium tests run against them
      • eugenmayer
        ok, well i guess the java bindings are quiet good right
      • WhereIsMySpoon
        yup
      • :api
      • selbot2_
      • ranger81 joined the channel
      • WhereIsMySpoon
        ^ those are the official bindings
      • eugenmayer
        its not like i do care much about that, i have seen a really good java integration, also in IntellJ
      • WhereIsMySpoon
        with the docs to match
      • eugenmayer
        Interesting, having about 2k lines of PHP code, would you suggest me to rather switch to Java here?
      • WhereIsMySpoon
        that isnt my decision to make
      • i dont know why you used php, which you're more familiar with, which your company is familiar with
      • eugenmayer
        i know, but we are talking about tests which will last for a while. If PHP is not the language to be supported in the long run
      • its a dead horse
      • titusfortner-sl joined the channel
      • we do it all, from java to php to c#, in this case, the programmer in charge was only doing PHP
      • WhereIsMySpoon
        2k lines isnt that much imo
      • eugenmayer
        but now we are taking over the work as the main branch so now developer are in charge and they do c#/java/php/ruby
      • WhereIsMySpoon
        if you have a choice, do it with an officially supported language
      • eugenmayer
        i guess things like waitUntilElementPresent are available?
      • WhereIsMySpoon
        though maybe not the js ones..theyre a bit opaque and difficult for people not intimately familiar with promises etc
      • titusfortner-sl
        Is anyone working on a w3c implementation of a php library at this point?
      • WhereIsMySpoon
        there is a w3c spec for the bindings?
      • eugenmayer
        WhereIsMySpoon: i will not switch from PHP to JS
      • titusfortner-sl
        i.e. are there any non-default libraries that work with Firefox 48+ at this point?
      • WhereIsMySpoon
        eugenmayer: you can do waits easily with java using webdriverwait
      • and expectedconditions
      • titusfortner-sl
        Ruby is easy to write in and more object oriented than PHP. :)
      • eugenmayer
        WhereIsMySpoon: JS is the worse from all of the named. We have a lot of JS knowhow here, but rather doing typoscript2 with angular2 or at least coffeescript. Still nobody has ever had fun with JS
      • kggr joined the channel
      • WhereIsMySpoon
        typoscript.. xD
      • eugenmayer
        titusfortner-sl: you are either not aware of PHP or ruby
      • WhereIsMySpoon
        titus writes the ruby bindings
      • titusfortner-sl
        I dabbled in PHP 12 years ago
      • WhereIsMySpoon
        i think he knows about ruby
      • eugenmayer
        For sure ruby is not more object orientaed then PHP7. Ruby is the one following Javascript next.
      • titusfortner-sl
        hmm, 14 years ago
      • eugenmayer
        Yeah, he knows ruby, but then he does not compare it objectivly.
      • titusfortner-sl
        Fair. I'm comparing it to much older versions of PHP
      • eugenmayer
        i do not care about any of those, and we have big rails ( actually jruby ) apps here. Beside we do all our devops in ruby/thor ( great stuff there ). After the ruby jorney i consider it to be the worse designed language next to javascript
      • titusfortner-sl: old php was like you probably mentioned. from 5.2 things are a lot better.
      • titusfortner-sl
        that being said PHP was historically a procedural language that was extended with OO, rather than being designed with OO from scratch :)
      • avpp_ has quit
      • so I would still argue Ruby as being more OO.
      • eugenmayer
        PHP has a better OOP design then ruby has, by margin or galaxies. And i am not protecting PHP here at all.
      • avpp joined the channel
      • ruby is as bad as it gets, rails helps you a bit, but in the end, it all comes down to "include <module> your ass off"
      • titusfortner-sl
        it's one approach to keeping classes small and managing multiple inheritence
      • eugenmayer
        and there is no http://yardoc.org/ to help you. Press "cmd+b" and see all .delete functions ever have been implemented in your gems. Thats how i think of it
      • titusfortner-sl
        Ruby has a lot of ways to design things
      • steffan_ joined the channel
      • eugenmayer
        Ruby has a lot of ways a javascript has. Having zero structure, zero constrains
      • rvisa has quit
      • titusfortner-sl
        We use yardoc in our Ruby projects
      • cmd+b are you talking an IDE specifically?
      • eugenmayer
        well compare yardoc with PHPdoc and the IDE support. I would rather pick yardoc to be close to useless then. But well, it deals with ruby, so it does its best here
      • titusfortner-sl
        anyway, whatever. Sorry you've had a bad experience with Ruby.
      • eugenmayer
        sorry "go to defintion"
      • titusfortner-sl: i am fine with ruby, as long as its a thor-based tool. And its small - more tiny. That said, we have more then 30k lines of ruby here, i would tend to more. But still, we have about 500k PHP or more and about 100k of java and even Cpp, so we are comparing them all
      • titusfortner-sl
        ability to meta-program makes that tricky since it often can't be evaluated until runtime
      • steffan_ has quit
      • it's a feature and a hurdle
      • eugenmayer
        yeah, makes the "software" unmaintable, no static code analysis
      • titusfortner-sl
        I would disagree, just presents different challenges
      • eugenmayer
        Its a hurdle since you cannot ever work on a ruby project with a bigger, changing team. You have to really have deep knowledge about the implemented tools, gems, what is what, navigating entirely without the IDE. That needs so much KB, that it becomes close to impossible over time
      • smccarthy joined the channel
      • titusfortner-sl
        The biggest issue with bigger projects is when people fail to follow conventions and don't know enough of what they are doing to design things well
      • but I get that isn't a trivial issue
      • but you do need to be handy with a debugger
      • eugenmayer
        debugger is like the first tool to have, and without, you basically can burry yourself, in Ruby and also PHP
      • i would really challenge you to check PHP for comparance. Not to make you switch or anything, i do not have any PHP buyin or anything religios. But knowdays ruby has fallen of a lot.
      • Chrisz has quit
      • It has been pretty sleek and cool 2005, but well, 10 years later, nothing essential changed. Maybe its like perl, for substantial changes it well need more then decades, until its actually dead :)
      • Anyways, was not at all an offense to you titusfortner-sl - thanks for the controversy.
      • lucast
        (╯°□°)╯︵ ┻━┻
      • selbot2_
        ┬──┬ ノ( ゜-゜ノ)
      • titusfortner-sl
        lol, no worries from me, I like talking these things.
      • but yes, Ruby popularity has gone down with decreased Rails adoption
      • that being said, Watir has been around longer than Rails, and that's my primary software
      • actually more pure Ruby in many ways than Rails
      • which opts for much more DSL magic obfuscations
      • Lord_Drake
        Dangit, lucast how does on flip zee table?