#selenium

/

      • davehunt
        jimboslice-sl: no, add prefs via options.set_preference()
      • jimboslice-sl
        We have about 10-ish extra ones that we used to provide with --firefox-profile
      • davehunt
        jimboslice-sl: you could always read in a file though
      • jimboslice-sl
        Yeah, that's what I'll do if there's nothing supporting that in FirefoxOptinos
      • sixth joined the channel
      • davehunt
        jimboslice-sl: quick user survey.. how do you feel about the --firefox-* command line options being removed?
      • swampdragons joined the channel
      • jimboslice-sl
        I only really use the --firefox-profile one. And I know how to solve within my own code.
      • I'm guessing the less CLI options the better
      • kggr joined the channel
      • especially such specific ones (they can only be used with doing --driver firefox or -driver Remote if using ff)
      • davehunt
        jimboslice-sl: yeah, the command line is too restrictive, there are so many options that can be configured that I want to encourage users to do so
      • jimboslice-sl
        Agreed
      • davehunt
        great, thanks for the validation
      • jimboslice-sl
        hmm... I could use this: selenium.webdriver.firefox.firefox_profile.FirefoxProfile#_read_existing_userjs
      • davehunt
        jimboslice-sl: you could but then you're pushing an entire profile around
      • it's much lighter to just send prefs if that's all you want
      • errant_rider joined the channel
      • jimboslice-sl
        but wouldn't I do the same thing only in the fixture? ie read and parse the file and then call .set_pref() ?
      • Mayestril has quit
      • Karthi joined the channel
      • Karthi
        hi
      • jimboslice-sl
        davehunt: I can access it from firefox_options.profile right?
      • Karthi
        in my selenium based web application not working when i host ?
      • if any web based application using selenium please provide sample by nkarthikeyan@entrustsoft.in
      • davehunt
        jimboslice-sl: sorry, having four very different conversations atm :P
      • Karthi
        k
      • davehunt
        jimboslice-sl: you can read and parse a file locally, but you'll only send preferences over the wire if you use options.set_preference for each preference.. If you use options.profile the entire profile directory will be sent over the wire.
      • pnaranja-sl joined the channel
      • jimboslice-sl
      • updated the gist with a better.py
      • is that a better approcah?
      • dude-x
        mmm, pie.
      • jimboslice-sl
        pie?
      • appricot?
      • I can't spell today
      • I'm hungre
      • lol
      • hungry
      • davehunt
        jimboslice-sl: that's psuedo-code, right?
      • ah, I see the comment :P
      • jimboslice-sl
        :P
      • davehunt
        firefox_options.update_preferences() is not valid
      • jimboslice-sl
        yeah, needs to be a .profile in between
      • davehunt
        firefox_options.binary can also just be a string path
      • jimboslice-sl: I'll add a comment :P
      • jimboslice-sl
        oh, you mean I don't have to import FirefoxBinary? That's awesome!
      • nice "Sets location of the browser binary, either by string or ``FirefoxBinary`` instance."
      • Sometimes it's good to read code :P
      • davehunt
      • voila, no profile!
      • Karthi has quit
      • jimboslice-sl
        but I do have to also call update_preferences() right?
      • or else they won't be written to disk?
      • davehunt
        jimboslice-sl: no disk involved
      • they're passed in a dict to geckodriver, which create a profile with them
      • jimboslice-sl
        but what about XPI?
      • davehunt
        you're installing an XPI?
      • this is news
      • jimboslice-sl
        we're still not using GD because there are some bugs stopping us
      • no, legacy firefox driver
      • davehunt
        oooh
      • then you have to use profile :( sorry
      • jimevans
        jimboslice-sl: i'd be interested to know which bugs are stopping you at the moment.
      • davehunt
        one major geckodriver issue has been solved (click + wait for page load)
      • fabrice31 has quit
      • with that, I think we'll be able to start adopting it more widely
      • AutomatedTester
        have a good weekend all
      • jimboslice-sl
        Don't be sorry. I'll add a comment to that fixture so I know I can change it once we go full GD
      • you to AT!
      • jimevans: it has to do with ActionChains, let me find the bug#
      • jimevans: sigh...
      • jimpurbrick has quit
      • jimevans: gimme a minute to find this thing
      • does anyone know the link to geckodriver issues?
      • google is just giving me SO and GH
      • jimevans
        you mean mozilla's bugzilla database?
      • jimpurbrick joined the channel
      • jimboslice-sl
        haha
      • I actually found something
      • barancev
        I'd retest before referrring to two-month old reports
      • jimboslice-sl
        I made that report
      • barancev
        two months ago
      • jimboslice-sl
        But I'm happy to run the snippet using FF53/54 and GD 16
      • yes
      • sanscoeur joined the channel
      • p0deje has quit
      • bbarke joined the channel
      • smccarthy joined the channel
      • duderonomy has quit
      • jimevans
        well, i guess i won't be working on selenium for awhile
      • lucast
        why not?
      • jimevans
        i can't build java
      • jimboslice-sl
        jimevans: ?
      • jimevans
        buck craps out saying it can't find javac
      • lucast
        simon come back from vacation!
      • jimevans
        for a *specific* target, mind you.
      • jimboslice-sl
        heh
      • jimevans
        javac is appropriately on the path.
      • i really don't have the time or energy to go spelunking into the bowels of buck. so until simonstewart gets back, i'm out.
      • jimboslice-sl
        Enjoy the time off?
      • _when_ is simon back?
      • jimevans
        next week sometime
      • jimboslice-sl
        Ok
      • saphyel has quit
      • kyuwonchoi joined the channel
      • stryx` joined the channel
      • kpschmidt joined the channel
      • kpschmidt has quit
      • pnaranja-sl has quit
      • jimpurbrick has quit
      • saybinem-sl joined the channel
      • saybinem-sl
        Hi, anyone managed to work with PROXY Authentication box with python code in Chrome ? it work for me if i manually enter username&password and i can see my IP using the proxy server but can't find solution to do it automatically using selenium.. any help will be very appreciate . thanks,
      • Stevesan has quit
      • alien_ has quit
      • Lord_Drake joined the channel
      • Lord_Drake
        jimboslice-sl: Jimbo! :D
      • jimboslice-sl
        Lord_Drake: yo! Did you ever fix that hidden element? :relaxed:
      • Lord_Drake
        Lol, know any other good jokes?
      • jimboslice-sl
        Heh
      • Lord_Drake1 has quit
      • Lord_Drake
        I've got a couple thoughts on ways to help with that, but unfortunately it'll be a while before the devs get to it.
      • I did get the ok to send you that screenshot of the DOM though.
      • jimboslice-sl
        Cool! Send it and I'll take a look
      • Lord_Drake
        Can you shoot me your email? My system crashed so I lost the note for it.
      • jimboslice-sl
        DM'd it
      • Did you get it?
      • stryx` joined the channel
      • I'm on my phone still. But I'll look in an hour or so. Have to put my kid to bed and other such adult responsibilities.
      • MrFantastik joined the channel
      • MrFantastik
        how do i send a tab in selenium?
      • UNAME.send_keys(Keys.TAB) returns Keys not defined
      • Staunch
        you need to import Keys
      • mfsi_ankitm has quit
      • MrFantastik
        i added import Keys
      • and that returned no module named Keys
      • Lord_Drake
        I did
      • Sent it out
      • MrFantastik
        i figured it out
      • Lord_Drake
        Thanks for the help. :)
      • jimboslice-sl
        Happy to help :)
      • MrFantastik
        from selenium.webdriver.common.keys import Keys
      • Lord_Drake
        I also replaced my basepage with your package.
      • Staunch
        sorry MrFantastik, i got distracted on my way finding the import statement :P
      • glad you got it figured out:)
      • Lord_Drake
        So far is seems to work seamlessly
      • MrFantastik
        yea for once i rtfm
      • Lord_Drake
        *it
      • mfsi_ankitm joined the channel