#selenium

/

      • Tal_
        a virtual school if you will
      • errant_rider
        so this is for people who home school?
      • Tal_
        for college
      • its like college classes i believe
      • errant_rider
        ….no its for k-12, not college
      • Tal_
        but they test everything in the ide and have thousands of scripts
      • LTCD
        What's K12?
      • jimevans
        i do *not* believe in the record-playback paradigm as a method of creating maintainable tests. automating a browser is a development activity, and requires development skills.
      • full stop.
      • LTCD
        Can someone tell me how to change value in a variable please using the IDE?
      • store 5 i now how do I change i to 10 later on?
      • jimevans
        "K-12" == "kindergarten through 12th grade"
      • errant_rider
        u don't do it in the IDE…u have to export the code and modify it there
      • stop using the IDE
      • Tal_
        oh you are right it is k12
      • LTCD
        ha ha ha
      • WhereIsMySpoon
        LTCD: probably not possible with the ide
      • LTCD
        Fuck it
      • WhereIsMySpoon
        im not just going with what other people are saying here, im serious
      • the ide has limitations
      • Tal_
        LTCD: gonna be honest with you man, maybe you can use the ide to export and mess around and learn some stuff. it is extremely limited
      • WhereIsMySpoon
        and having local variables that increment inside loops is probably one of them
      • LTCD
        Loops work fine, but fine next project I will.
      • Tal_
        its only 9:20am and i already want a beer looking at todays work -_-
      • WhereIsMySpoon
        #pubtime
      • errant_rider
        mmmm i have meetings with UK folks who aren't heading to the pub
      • WhereIsMySpoon
        errant_rider: ur doin it wrong
      • Tal_
        far from pub time for me im like 5 hours behind you ;p
      • WhereIsMySpoon
        all meetings belong in the pub
      • :P
      • Tal_
        ^
      • WhereIsMySpoon
        Tal_: same here tbh :P 2:19 here
      • Tal_
        i work above 2 different bars, i never get home on time =P
      • WhereIsMySpoon
        lol
      • Seems good
      • Tal_
        taunt you with their tasty hops
      • barley just calling your name
      • errant_rider
        its 9am here
      • Leon_ joined the channel
      • Leon_
        Hello all.
      • WhereIsMySpoon
        all isnt here
      • Leon_
        Hey Spoon!
      • WhereIsMySpoon
        i can get you someone instead
      • or nobody
      • oh dear, im being recognised
      • Leon_
        lol
      • Someone answer me this question:
      • WhereIsMySpoon
        never
      • Leon_
        Of the following By instantiations, are at least 2 of them functionally identical?
      • public final By byButtonMyRates = By.cssSelector("[class = 'pure-button seerates']");
      • public final By byButtonMyRates = By.className("pure-button seerates");
      • WhereIsMySpoon
        the second wont work
      • Leon_
        public final By byButtonMyRatesss = By.className("pure-button.seerates");
      • WhereIsMySpoon
        or the third
      • Leon_
        Correct, spoon.
      • WhereIsMySpoon
        className works for one class
      • wait, you knew?
      • i dont need to be tested thanks
      • Leon_
        I wasn't testing
      • fluor_ joined the channel
      • WhereIsMySpoon
        then why ask
      • Leon_
        It's leading up to another question and I couldn't quite figure out how to formulate it
      • WhereIsMySpoon
        oh
      • Leon_
        The question is "Why do the bottom two By's not work?"
      • But you've answered that as className only works for a single class.
      • WhereIsMySpoon
        ...?
      • did you know that already?
      • Leon_
        I did not know that
      • WhereIsMySpoon
        oh right
      • Leon_
        I knew that the bottom two selectors were not working, but I didn't know why
      • jimevans
        Leon_: yes. if you need multiple class names, use a css selector
      • WhereIsMySpoon
        also btw, the first selector is a bit too much
      • By.cssSelector(".pure-button.seerates") will work fine
      • Leon_
        Because I can shorten it with By.cssSelector(".pure-button.seerates")?
      • WhereIsMySpoon
        mhm
      • fluor_
        slenium ide: when I create a second 'test case' I can see only the content of one test case in the 'table/source' section. is this a feature or a bug?
      • jimevans
        if memory serves, the exception thrown when you use By.className with a "compound class name" tells you as much.
      • liuedx has quit
      • Leon_
        @Jimevans, I would hope that were true, but I simply get a "TimeoutException"
      • jimevans
        Leon_: then you're using it as part of a wait.
      • and i would fully expect a timeout exception.
      • Leon_
        Ahh yes, true.
      • liuedx joined the channel
      • smccarthy
        Were the SeConf India talks recorded this year?
      • fluor_
        can anyone help with a noob question?
      • jimevans
        smccarthy: i'd be surprised if they weren't
      • fluor_: you'll find most people in the channel don't use IDE.
      • smccarthy
        ok cool
      • fluor_
        why is it so?
      • jimevans
        fluor_: i, for one, don't use it, and i remain purposefully and willfully ignorant about it, so that i won't have to help people who use it.
      • fluor_: speaking only for me, i don't believe in the record-playback paradigm as a method for creating reliable, maintainable tests.
      • WhereIsMySpoon
        ^ +1
      • Leon_
        ^+2
      • Hey, Spoon-- y'still there?
      • WhereIsMySpoon
        no
      • :p
      • jimevans
        fluor_: i believe that automating a browser is, and ought to be, a software development (e.g. programming) activity, and as such, people doing the task of automating a browser should possess software development (e.g. programming/coding) skills.
      • WhereIsMySpoon
        sup
      • liuedx
        Leon, Fork is here
      • Leon_
        Compare these By statements...
      • fluor_
        is there a channel were the devs of ide meet?
      • WhereIsMySpoon
        liuedx: fork off
      • liuedx
        lol
      • jimevans
        fluor_: i don't believe there is one dedicated to that, no.
      • Leon_
      • WhereIsMySpoon
        fluor_: you could try asking on stackoverflow
      • Leon_
        By.cssSelector("#Loan.applicant.dateOfBirth_testingid")
      • By.id("Loan.applicant.dateOfBirth_testingid")
      • jimevans
        bear in mind that selenium ide is mostly unmaintained.
      • Leon_
        Are the three of these instantiations not identical?
      • WhereIsMySpoon
        not sure about tha tfirst one with the dot
      • the second adn third should be
      • fluor_
        jimevans: that makes sense
      • Leon_
        The first one is the only one that is functioning properly =/
      • Which surprised me too
      • Hence why I am asking, lol
      • jimevans
        Leon_: depending on the html of the page you're running that code against, i'd suspect they're all working "properly," but just not how you expect. :)
      • Leon_
        Interestingly enough... If I right click the element and click "inspect in Firepath", the selector that is generated is By.cssSelector("#Loan.applicant.dateOfBirth_testingid")
      • LTCD has left the channel
      • However, it says that he resulting node count for that query is 0.
      • ....Upon inspecting the very element.
      • However, if I change it to the above xpath, it finds it no problem.
      • jimevans
        oh. hang on.
      • you've got a period in the id.
      • Leon_
        Is that the issue?
      • jimevans
        that's a special character in css selectors.
      • Leon_
        Ahh okay...
      • By.cssSelector("[id='Loan.applicant.dateOfBirth_testingid']") works fine.
      • And it's a bit cleaner than the xpath, so I think i'll go with that one
      • WhereIsMySpoon
        oh yeah, duh ><
      • period means class name
      • the person who put periods in their ids is silly
      • fluor_
        jimevans: your argument is basically a workers-union type argument. There are basically tasks in testing that are so stupid that someone who can code a line get bored to death even thinking about it. ide would provide a means to provide low-level testing jobs, even for php or python scripters.
      • jimevans
        so what you're asking with By.cssSelector("#Loan.applicant.dateOfBirth_testingid") is "give me the element that has an id of 'Loan' and contains the classes 'applicant' and 'dateOfBirth_testingid'"
      • WhereIsMySpoon
        fluor_: no, what he's saying is that the task is never that simple to create a reliable, robust test suite
      • jimevans
        fluor_: um, no, that's not my argument at all.
      • WhereIsMySpoon
        the reason why you get programmers to do test automation is because it is not trivial
      • jimevans
        fluor_: "testers" != "browser automators"
      • oida has quit
      • fluor_
        with the last one you are only right if your company has ide. otherwise tester=automator.
      • Pushparaj joined the channel
      • Pushparaj
        Hi
      • Hi Team , I am pushparaj from Chennai
      • jimevans
        fluor_: don't misunderstand me. the point i'm making is that there is great value in testing, and not all testers need to know how to automate. however, if one is going to be automating, one should really be able to code.
      • note further that not all tests need be automated.
      • WhereIsMySpoon
        ^ +1 to all that
      • Pushparaj
        i need one help from selenium grid node
      • Is it possible to run multiple node in single machine
      • WhereIsMySpoon
        Pushparaj: yep
      • Pushparaj
        How to use different port in single machine