#selenium

/

      • jimpurbrick has quit
      • mach6 joined the channel
      • jimpurbrick joined the channel
      • roelmonnens has quit
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • [b__b] joined the channel
      • jimpurbrick has quit
      • mach6
        um. I guess so?
      • simonstewart joined the channel
      • anvo-sl has quit
      • simonstewart has quit
      • SitamJana has quit
      • swampdragons joined the channel
      • chele has quit
      • Luffhahov joined the channel
      • kyuwonchoi joined the channel
      • Luffha has quit
      • jimpurbrick joined the channel
      • MrCoder joined the channel
      • Luffhahov has quit
      • cristi has quit
      • stryx` joined the channel
      • simonstewart joined the channel
      • swampdragons has left the channel
      • simonstewart has quit
      • smccarthy
        :changelog
      • selbot2
      • duderonomy has quit
      • DuivesteijnM has quit
      • pnaranja-sl joined the channel
      • stryx` joined the channel
      • dias_p-sl joined the channel
      • dias_p-sl
        anyone solved the issue of pressing search button on number keyboard for Android?
      • lucast
        sounds appium related?
      • dias_p-sl
        yep
      • JoWie joined the channel
      • michl68 has quit
      • lucast
        i believe there's an appium related channel in slack
      • check out #appium
      • simonstewart joined the channel
      • tparikka-sl joined the channel
      • tparikka-sl
        appium as it happens :)
      • lucast
        :)
      • enroxorz-sl joined the channel
      • jimevans joined the channel
      • enroxorz-sl
        Hello everyone! Looking to point the selenium docker container to a proxy (browsermob) which itself is in a docker container. How do I do this?
      • simonstewart has quit
      • dias_p-sl
        thx!
      • dcypherthis-sl joined the channel
      • indistylo joined the channel
      • ddavison-sl joined the channel
      • kggr joined the channel
      • Selenium-Github
        [13selenium] 15p0deje 04force-pushed 06rb-handshake from 140439620 to 14a8a0034: 02https://git.io/vSPOI
      • 13selenium/06rb-handshake 14a8a0034 15Alex Rodionov: Support both OSS and W3C dialects in Ruby bindings...
      • ddavison-sl
        @enroxorz, have you tried to accomplish your task yet? what commands did you use. if the "selenium docker container" you are referring to is your node, then you are able to specify: `$HUB_PORT_4444_TCP_ADDR` and `$HUB_PORT_4444_TCP_PORT` <-- i'd think i'm going to change those variables eventually..)
      • p0deje has quit
      • sanscoeur joined the channel
      • theseb joined the channel
      • marxarelli|afk is now known as marxarelli
      • theseb
        help! how UNDO a switch_to_frame? I want to jump back to original.....possible to save a REFERENCE to frame BEFORE the switch and then use that reference to switch back?
      • jimevans
        theseb: how about switch_to_parent_frame
      • theseb
        jimevans: ok..i'll try that....
      • thanks
      • enroxorz-sl
        ddavison-sl I've gone from creating my own containers with browsermob proxy to shimming them into the selenium containers themselves. Nothing works. Basically I need the nodes to proxy to the browsermob proxy container i have and then do it's thang. When I run it outside the container (in a browser run) it works great, but once I am trying to get the container to proxy into the browsermob container it cant connect to the internet.
      • stryx` joined the channel
      • theseb
        jimevans: imagine you go into a frame of a frame of a frame...etc....to be safe (and for debugging) is it possible to save a reference to original frame and use that?
      • enroxorz-sl
        Do I need to add the proxy info in the hub or in the node container? When I try it with the browser it bites the bucket.
      • theseb
        jimevans: i recall never debugging an issue i had w/ this months ago...that's why i'm asking
      • GodFather__ has quit
      • jimevans
        theseb: nope. then you'd need to do switch_to_default_content() to go to the top-level frame, and re-navigate down to wherever you want.
      • from a frame, you can navigate to a child frame, a parent frame, or the top-level document. that's it.
      • the API assumes you know the site you're automating, and since you did all the frame switching, you'll know the frame you're in and how to navigate to other frames as needed.
      • roelmonnens joined the channel
      • theseb
        jimevans: 1. thanks 2. sounds like switch_to_default_content will do the trick....3. to go to top level couldn't one also just revisit same URL? ..that would reload the page and act like beginning!? no?
      • jimevans
        theseb: in theory, maybe. in practice, it depends heavily on the browser driver implementation.
      • i'm reminded of one of my favorite engineering sayings. "In theory, theory and practice are the same thing; in practice, they rarely are."
      • theseb
        k,, thanks again
      • jimevans: Yogi Barra iirc ;)
      • jimevans
        i'd be surprised if it were actually yogi. not saying it isn't, but it's a little too nuance for most of his malapropisms.
      • ddavison-sl
        enroxorz-sl it's hard to figure out exactly what you're trying to do, but here are a couple cases. If you are trying to run tests against a hub through a proxy, then you need to specify that in your desiredcapabilities. something like this could work: https://github.com/SeleniumHQ/docker-selenium/w... If your hub (within a docker container) needs a proxy, then someone else might have to help you -
      • "never" had to use proxies, so i'm not completely familiar with it.
      • theseb
      • jimevans: oh crap you are right...
      • it has it as "misattribution" !
      • jimevans
        to quote the late, great mel allen (as long as we're talking baseball), "how about that!"
      • ddavison-sl
        the selenium-server-standalone.jar should have a default method for specifying a proxy
      • theseb
        jimevans: there's a ton if misattributions to him ;)
      • jimevans: all these years i was confused how a baseball player was known for all these brilliant quotes
      • enroxorz-sl
        ddavison-sl does that mean all traffic for each browser goes through the hub and not through the node directly?
      • ddavison-sl
        the grid / node setup works like this: **Your Computer -> Hub <- Node** your computer should never interact with the node
      • kyuwonchoi has quit
      • enroxorz-sl
        oh man, today i learned....ok, so i need to change the proxy on the hub then. No documentation on that?
      • ddavison-sl
        like i said, somebody else might be able to help. i'm very inexperienced in the proxy realm :X i think i vaguely recall that you can specify "-proxy http://...." on the selenium-standalone.jar.
      • if someone can confirm this, then you can specify `docker run ... -e SE_OPTS="-proxy http://...." ...`
      • enroxorz-sl
        ddavison-sl re-reading your comment, when a browser goes to http://foo the transportation for the HTTP request goes through the hub and not out to the world, right?
      • khoa137 joined the channel
      • khoa137
        hi
      • roelmonnens has quit
      • do anybody here ^^
      • jimevans
        khoa137: :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 :)
      • roelmonnens joined the channel
      • vidplace7 joined the channel
      • littleli joined the channel
      • lukeis joined the channel
      • ddavison-sl
        sheesh.. i think you're lost. ok - "when a browser goes to http://foo>; the transportation ... goes through the hub" -- no. if your tests are setup with a hub, the test will be forwarded through the hub, to a node. that node has a browser on it. then the browser will directly access <http://foo
      • diemol-sl joined the channel
      • khoa137 has quit
      • diemol-sl
        ddavison-sl enroxorz-sl there is a flag called `-proxy`, but the purpose is different, and it is only present for the nodes...
      • ` -proxy String : the class used to represent the node proxy. Default is [org.openqa.grid.selenium.proxy.DefaultRemoteProxy]. Default: org.openqa.grid.selenium.proxy.DefaultRemoteProxy `
      • it is used when you want to have a different behaviour of your nodes, so you can overwrite that behaviour by implementing some java classes
      • enroxorz-sl
        Ok @ddavison, so when i change the proxy on the browser in the node to point to localhost:9091 or whatever browsermob-proxy generates it should hit the proxy but currently it doesnt. When I call chromedriver (or geckodriver) directly it works as expected.
      • mach6
        in selenium grid world, proxy is a synonym for node ... yea confusing, i know
      • dude-x
        well the grid server is a reverse proxy/proxy server
      • so yaeh it's confusing
      • mach6
        yea.. exactly
      • pnaranja-sl has quit
      • roelmonnens has quit
      • diemol-sl
        maybe you can map the port 9091 to a port outside the container @enroxorz? wherever the browsermob-proxy is running
      • roelmonnens joined the channel
      • theseb has left the channel
      • roelmonnens has quit
      • tparikka-sl has quit
      • arosen joined the channel
      • enroxorz-sl
        diemol-sl 9090 doesnt work?
      • arosen
        anyone know if you can use the selenium-webdriver to connect to chrome running in headless mode directly?
      • diemol-sl
        I was just saying 9091 since you mentioned `localhost:9091` :)
      • enroxorz-sl
        diemol-sl sorry, that's the actual browsermob proxy server that will serve me the port
      • i need a drink, ive been at this for a week now
      • dias_p-sl has quit
      • lukeis has quit
      • lukeis joined the channel
      • diemol-sl if I run browsermob-proxy locally (no container) will the node browsers recognize the localhost proxy port and go through it?
      • brma joined the channel
      • diemol-sl if I run browsermob-proxy locally (no container) will the node browsers recognize the localhost proxy port and go through it?
      • diemol-sl
        wait... this is like a deja vu...
      • wait... this is like a deja vu...
      • there was a dev here that wanted to run the web app locally from his IDE, and use docker-selenium to execute the tests with localhost:8080
      • it is the same scenario, you want to call localhost:XXXX from inside the container
      • pnaranja-sl joined the channel
      • and that should result on the app and port running on your host machine