#selenium

/

      • pauluchon joined the channel
      • simonstewart
        Well, looks like webpack really
      • Because I invoke webpack by calling yarn
      • kpschmidt has quit
      • hazmeister-sl
        @p0deje just the name
      • always loev a good pun
      • shadoxx joined the channel
      • windows ships with robocopy too
      • p0deje
        ah, it's a good one :)
      • simonstewart oh, configuring webpack is fun, they say
      • pauluchon
        Hi !
      • simonstewart
        The problem I'm wrestling with is that the atoms source is dependent on files in two different directories
      • With Buck, I'd just declare a `closure_library` and set up dependencies for the libraries, then output a single file using `closure_binary` which would include an optimally small subset of source files
      • Time to go read the webpack docs, I guess
      • kpschmidt joined the channel
      • The closure compiler does this out of the box
      • Reading webpack docs now. Turns out that the atoms don't have a normal "entry" point.
      • Lina_ has quit
      • p0deje
        you need exports, right?
      • simonstewart
        Dunno.
      • Depends on how we're using this
      • pauluchon
        I'm facing issues with latest selenium server and IEdriver in hub mode. I'm getting Element not found each time I try to find an element by id. I've seen that behavior has changed in IEdriver changelog, but I've just updated from 3.5.1 to 3.6..
      • s-v-romankov-sl has quit
      • simonstewart
        In the ideal world, folks would just "import" the module that they needed from the atoms, and we'd compile the individual components that way
      • kpschmidt has quit
      • But we appear to be starting from an already compiled snapshot of an old IDE build
      • So I have no idea what we're trying to actually do here
      • Right now, we blindly copy all source files over to the web extension. That feels incorrect
      • tomer-sl has quit
      • @tomer feel free to join this conversation :)
      • p0deje
        I'm not good at those things
      • but I guess we either need to pull in atoms code via git submodule + exports + webpack
      • simonstewart
        p0deje: we're using "peru" to manage that bit of the process
      • The git submodule bit
      • p0deje
        oh, looks great
      • zavelevsky-sl has quit
      • simonstewart
        It'll do
      • It's a hack
      • p0deje
      • simonstewart
      • roelmonn_ joined the channel
      • Apparently
      • WhereIsMySpoon joined the channel
      • WhereIsMySpoon has quit
      • WhereIsMySpoon joined the channel
      • barancev|2
        ave, simonstewart!
      • simonstewart
        G'day barancev|2!
      • barancev|2
        I have a style question
      • simonstewart
        Go
      • for
      • it
      • :)
      • roelmonnens has quit
      • m-sl joined the channel
      • m-sl
        Guys what do you prefer for Selenium? Python or Java?
      • simonstewart
        Me? Java, natch
      • But I'm biased
      • m-sl
        Hmmm i prefer python
      • barancev|2
        InternetExplorerOptions.requireWindowFocus() vs e.g. FirefoxOptions.setAcceptInsecureCerts(boolean) -- what style should we prefer for boolean options?
      • simonstewart
        m-sl: ij
      • ok
      • kpschmidt joined the channel
      • Damn off-by-one errors
      • Java Bean style suggests "get/set", with the common addition of "has" for boolean values
      • For a builder, I'm less inclined to go with that
      • I think I prefer being able to explicitly set the value to `true` or `false`
      • But we could do the hybrid thing: `FirefoxOptions.acceptInsecureCerts(boolean)`
      • The options tend to be write-only
      • so every method is implicitly a "setter"
      • barancev|2
        I just want to make all options style uniform
      • simonstewart
        Yeah
      • I hear you
      • hybrid style, I think
      • Your thoughts?
      • kpschmidt has quit
      • NOTICE: SeleniumHQ/selenium#2839 (master - 6c1390b : RustyNail): The build is still failing.
      • NOTICE: Change view : https://github.com/SeleniumHQ/selenium/compare/81376362a880...6c1390bf5d35
      • NOTICE: Build details : https://travis-ci.org/SeleniumHQ/selenium/builds/282622237
      • WhereIsMySpoon has quit
      • kpschmidt joined the channel
      • hazmeister-sl has quit
      • barancev|2
        sounds good
      • renaming, deprecating...
      • WhereIsMySpoon joined the channel
      • roelmonn_ has quit
      • roelmonnens joined the channel
      • tomer-sl joined the channel
      • tomer-sl
        @p0deje @simonstewart I guess my reasoning is that I don’t want to break the extension
      • As long as we can replace small parts of it without breaking we’re moving forward
      • no?
      • pauluchon has quit
      • pauluchon joined the channel
      • pauluchon
        Is there any known problem with latest selenium hub with latest IEDriver ? Running without hub, everything is fine, running in hub unable to get any element (I've tried by id and by class). Here is a simple test case in PHP, but it's simple enough to convert it in any language. I'm facing this issue with IE11, Selenium server 3.6, IE Driver 3.6
      • And here is the error message : InvalidArgumentException: Element not found.
      • barancev|2
        simonstewart: also I'm going to deprecate and delete methods like SafariOptions.getUseCleanSession(), all the getters
      • m-sl has quit
      • pauluchon
        And of course, same code is ok with chrome and my Internet option are the same for all mode
      • Kabone joined the channel
      • Kabone
        Anyone Around? Quick question about - driver.findElement(By.xpath(
      • WhereIsMySpoon
        Kabone: :ask
      • selbot2
        If you have a question, please just ask it. Don't look for topic experts. Don't ask to ask. Don't PM. Don't ask if people are awake, or in the mood to help. Just ask the question straight out, and stick around. We'll get to it eventually :)
      • Kabone
        Alright
      • WhereIsMySpoon
        pauluchon: 1) you’re sure the id is ‘loginFrm_username’? not the name or some other attr? 2) is it maybe a timing issue?
      • Kabone
        So basicly - I am trying to use - driver.findElement(By.xpath("//*[@id='i...; to type in an email address on a page. The element is <input id="inputEmailHandle" name="inputEmailHandle" value="" required="" type="text">
      • pauluchon
        WhereIsMySpoon: 1) Yes sure, 2) I've tried with a basic sleep and no change
      • WhereIsMySpoon
        Kabone: looks good so far
      • whats teh issue
      • pauluchon: oh, its IE issue only?
      • Kabone
        When it tries it causes an eception
      • WhereIsMySpoon
        i missed that
      • Kabone
        This is on firefox
      • WhereIsMySpoon
        Kabone: can you :gist the exception?
      • selbot2
        Please paste >3 lines of code or text to https://gist.github.com and share the resulting URL
      • Kabone
        Exception in thread "main" java.lang.NullPointerException at com.package.Main.main(Main.java:251)
      • WhereIsMySpoon
        also can you :clarify and maybe post your whole test code in a :gist
      • selbot2
        Please paste >3 lines of code or text to https://gist.github.com and share the resulting URL
      • Please clarify: Are you using WebDriver, RC or IDE? What version of Selenium? What programming language? What browser and browser version? What operating system?
      • Kabone
        sure one sec
      • pauluchon
        WhereIsMySpoon: Yes IE only..
      • WhereIsMySpoon
        ignore the first question :) i know you’re using webdriver
      • pauluchon: I would submit it as a bug then if it looks like an IE only issue, and if you can attach the driver logs
      • if you’re not sure how to do that dont worry
      • Kabone
      • WhereIsMySpoon
        sounds like a bug to me
      • Kabone: which line is the NPE on?
      • pauluchon
        Ok thank's WhereIsMySpoon
      • WhereIsMySpoon
        that gist doesnt have 251+ lines on :)
      • Kabone
        on that - 26
      • WhereIsMySpoon
        Kabone: are you sure username isnt null?
      • Kabone
        yes
      • WhereIsMySpoon
        you really just need to debug and step through to that line
      • Kabone
        before i print it out
      • WhereIsMySpoon
        then inspect each part of the line
      • inspect driver, inspect driver.findElement(…)
      • kpschmidt has quit
      • Kabone
        That's what I have bee trying to do. Originally I couldn't get it loading custom when I was not loading the driver as I am now it was working
      • WhereIsMySpoon
        well clearly something on that line is null
      • its either the findelement or the username
      • Kabone
        it's the element
      • WhereIsMySpoon
        though I would expect findelement to throw rather than return null
      • if it didnt exist
      • Kabone
        but I have tried adding waits, expected
      • but it does
      • WhereIsMySpoon
        throw an elementnotfound exception
      • or whatever it is
      • not an NPE
      • Kabone
        ok