Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Diego Molina
    @diemol
    Hi @cameronc56, you just need to share the folder with the docker container, check the answer you got in the Zalenium chat
    Cameron Cooks
    @cameronc56
    thanks
    Cameron Cooks
    @cameronc56
    So I am getting it to work running selenium-standalone on my machine
    but I cant get it to work using docker-selenium or zalenium
    I am using webdriverIO - and adding the extension with:
    extensions: [fs.readFileSync('./tmp/hello.crx', 'base64')]
    not sure why that wouldn't work for both cases
    since the extension is just a base64 encoded string being passed in its entirety, it shouldn't matter whether im opening chrome in the docker image or on my host
    and I shouldn't have to share a folder
    Raj
    @RajVasikarla_twitter
    any clue why i get this in my docker?
    stugIV
    @stugIV
    Hi. I have problems with starting video session:
    2018-02-07 15:36:18,066 INFO spawned: 'video-rec' with pid 971
    2018-02-07 15:36:18,077 INFO success: video-rec entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
    2018-02-07 15:36:18,501 INFO exited: video-rec (exit status 1; not expected)
    can someone help?
    stugIV
    @stugIV
    for some reason it is not working with
    -v $(pwd)/videos:/videos
    flag...
    Hemanathan
    @Gamaiva
    Can any one help me , I am getting this error on running selenium in jenkins local host 8080
    INFO: Detected dialect: OSS
    _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
    stugIV
    @stugIV
    Solved... not enough memory. Thank you....
    Fabrizio
    @woodchucker
    HI I have problem with driver.find_elements_by_xpath("//*[contains(@id, 'ptfdamageProposal')]")
    find a webElement but cannot getAttribute('id') over it
    ty in advance
    same xpath in javascript work perfectly
    Diego Molina
    @diemol
    @woodchucker please join https://seleniumhq.herokuapp.com, over there those type of questions get answered much quicker
    Peter Begle
    @pbegle
    Was there a recent update to firefox that eliminated the following option to turn off the download dialog box? I no longer see this option browser.download.manager.showWhenStarting in the about:config section of firefox
    is there a new way to turn the download dialog box off?
    sergio fonseca
    @sergioffonseca01_gitlab
    Hello guys. How can I interact with chrome extensions with selenium?
    Firdaus Kamaruddin
    @firdausng
    hi, is there any guide to integrate selenium hub using docker with windows node? any gotcha that i need to know?
    Joel Pearson
    @pearj
    Do you mean internet explorer inside a windows docker container? It’s not possible at the moment, you can’t have a gui inside a windows docker container at present.
    majinkhoo
    @Shinoby1992

    @elgalu is it possible to pass these 2 variables to the hub docker image? got it from dockerhq
    -e JAVA_OPTS=-Xmx1024m -e GRID_JETTY_MAX_THREADS=2048 i cant find anything in docs, if its not possible, how to add it to my custom image in start-selenium-hub.sh

    java ${JAVA_OPTS} \
    -jar ${SELENIUM_JAR_PATH} \
    -port ${SELENIUM_HUB_PORT} \
    -role hub \
    -maxSession ${MAX_SESSIONS} \
    -timeout ${SEL_RELEASE_TIMEOUT_SECS} \
    -browserTimeout ${SEL_BROWSER_TIMEOUT_SECS} \
    -cleanUpCycle ${SEL_CLEANUPCYCLE_MS} \
    -GRID_JETTY_MAX_THREADS= 2048 \
    -Xmx1024m \
    ${SELENIUM_HUB_PARAMS}

    like that?

    Leo Gallucci
    @elgalu
    Yes you could do that @Shinoby1992 , if you believe this is a convenient default maybe you could send a pull request with the change
    majinkhoo
    @Shinoby1992
    im not sure if thats a good idea, i never send any pull requests, so i don't even know whats important for structure ect.
    but i can tell these both settings should be included in elgalu image because these too factors / values can give a performance boost if using many instances
    im now mixing the original docker hub and use the dockerhq hub image with elgalu node image
    the hub runs better with these settings set than without
    Paul
    @PaulysGitHub
    Has anyone used any of the unofficial bindings for Selenium+Golang?
    I see some stuff on Github, but wondering if anyone here actually uses it.
    Nicolás Mercado
    @nmercado1986

    Hi, everyone.
    Thanks for docker-selenium.
    I had a question that's bugging me.
    I'm finding issues when trying to hit a linked container using an alias.
    For example:

        wordpress:
            ...
            ...
            networks:
                default:
                    aliases:
                        - "my-site.dev"
            ports:
                - 80:80
    
        selenium:
            image: selenium/standalone-chrome
            volumes:
                - /dev/shm:/dev/shm
            networks:
                default:
            links:
                - wordpress

    If I bash into the selenium container, I can curl the alias without issues. But when I ran autotests I'm not able to reach the host. If I use the service name, though, Selenium can find it without problems.
    Any help is appreciated.

    Jeff Dickey
    @jdickey

    We've been stumped trying to figure out how to get Selenium JavaScript testing working with our Dockerised Ruby (Hanami) app. For spec examples that don't depend on JavaScript, of course, the Capybara-default Rack::Test driver is adequate, but every modern app depends on JavaScript for one thing or another, and ours is/will be no different.

    I've read a few of the answers on SO, and started rifling through GitHub looking for random similar projects, but we've been stopped for an increasingly politically unsustainable length of time here.

    I've written up a Gist at https://gist.github.com/jdickey/b8065ae63f19c87939d13f3b22e40b72

    To summarise:

    1. We can run JavaScript-using feature specs successfully if no non-JS specs are run in the same rake invocation. (We use jbodah/minitest-tagz to filter spec invocations);
    2. When running our full set of specs, Firefox Marionette hangs when running a JavaScript-enabled example, with its log message indicating that it does not have the IP address it should be connecting to.

    Any help greatly appreciated

    Raj Vasikarla
    @vasikarla
    Hello, i have a node app running in my local and i able to access the app using https://localhost:8080. I started elgalu image in my local and vnc into it. When i try to access the same url, its unable to load the page. Am i missing anything here? kindly help . @elgalu : please help
    garryg1993
    @garryg1993
    hey guys,
    anybody knows how to set browserTimeout via zalenium platform? im having problems with the agents closing after 60 sec with error on keep-alive, we are using C#
    Konstantin Bläsi
    @konstantinblaesi
    increasing the number of browser instances/slots is not recommended according to https://github.com/SeleniumHQ/docker-selenium#increasing-the-number-of-browser-instancesslots
    I am using protractor and want to parallelize the tests . The protractor config is using maxInstances: N and shardTestFiles: true to run N test/spec files at a time. I am using the selenium/hub:3 and selenium/node-chrome:3 docker images. Would I just create N instances of selenium/node-chrome:3 and that's it?
    Alina V.
    @AlinaVasylieva
    Hey guys, I'm quite new to docker, need your advice!
    We are running e2e tests using docker-selenium and dosel/zalenium and faced with the issue that some tests are passing locally and crashing on docker execution. I thought that it has been caused by the browser version differences - pulled the latest images' version, but still the test is crashing in the same way. Please take a look at the test execution on local and zalenium (please note that scroll on zalenium video is manual):
    do you know what could cause this difference?
    chromedriver version in both cases is 2.45 ..., browser version is 71. ...
    garryg1993
    @garryg1993
    @AlinaVasylieva do you have an error message? maybe im facing the same problem..
    Alina V.
    @AlinaVasylieva

    No @garryg1993 , just regular test fail :(

    But it is cause by the different browser behaviour. In one case, click action is working as intended - scrolls to the element and clicks, in other - it doesn't scroll to the element, thus I'm getting timeout

    garryg1993
    @garryg1993
    oh, thats a different problem.. sorry i cant help with that
    Alina V.
    @AlinaVasylieva
    @garryg1993 thanks anyway
    abaradulkin
    @abaradulkin
    Hello everybody. One another question with Zalenium. I need to findout way, to get ssesion ID, to attach link for vide in Zelando dashboard to my report. Can anybody help me?
    sushantwingified
    @sushantwingified

    Hello everyone
    I am having a strange issue with docker-selenium.
    I am using Chrome Preferences in capabilities to automatically allow any notifications as below config in protractor
    `
    {
    browserName: chrome,
    shardTestFiles: true,
    maxInstances: 5,
    chromeOptions: {
    args: [
    '--disable-infobars',
    '--no-sandbox',
    '--log-path=/tmp/chromedriver.log',
    '--disable-dev-shm-usage',
    '--verbose'
    ],
    prefs: {
    'download': {
    'prompt_for_download': false,
    'directory_upgrade': true,
    'default_directory': downloadDir
    },
    'profile.managed_default_content_settings.notifications': 1
    }
    }

            }

    `
    The same config works fine while using a webdriver-manager based chromedriver session. But fails in Docker-Selenium.

    Alina V.
    @AlinaVasylieva
    Hey guys, not sure if the channel is correct, sorry in advance if this question is not relevant.
    Need a hand, as I'm quite new to Zalenium and docker itself.
    We are now trying to run Zalenium on AWS and the issue is that we can connect to the HUB, but have no idea how to connect to the agent?
    So I'm getting this error ERROR: getaddrinfo ENOTFOUND https https:80
    Could somebody advise how to initialise the agent's port in config file?
    We are using NodeJs, wdio and npm
    ninogomez
    @ninogomez
    Hey Guys! Anyone used Azure Devops?
    Hana Bizhani
    @hanabizhani
    Hi, Does elgalu/selenium linux based? if I want to run zalenium, how can I have a windows based selenium? Goal is Cross Browser Testing our scripts on different versions of firefox on windows
    Alexey
    @alleryan_gitlab
    Hi to all, maybe somebody has a project with webdriverio+selenium in docker-compose, share a link, please.
    Thank you in advice!
    prog20901
    @prog20901

    How to translate the files using google translator via selenium

    I come across https://translate.google.com/ which translates given text to the desired language.

    I have nearly 2,000 files with each file of 300 KB each.

    Currently i need to open each file, paste few text and translated it the above web-site and save it?

    Is there a way to automate for the 2,000 files by reading and sending portion of string and finally append to the file. Repeat for the same for all files

    Doubts

    Will the IP addressed will be blocked?
    Is it illegal to use selenium for this purpose?
    Is there a legal automated way to translate using the above free service?
    If nothing is possible, i need to do it manually

    please advise.

    thanks.

    prog20901
    @prog20901
    can someone help me how to select the language via selenium in https://translate.google.com/ ???
    prog20901
    @prog20901
    How to iterate with several pages? How to exit a page ? How to use for loop to navigate the same page by closing and opening several times in selenium ?
    prog20901
    @prog20901

    Hi,

    I have huge text files - raw text. I want to convert them to a different language. Google/Microsoft/Yandex is best for online conversions. However we need to copy and paste and moreover it has size limitation as well.

    Is there is any tool which i can use for bulk conversion at one shot which can give the output in multiple files.

    Thanks in advance.