#selenium

/

      • WhereIsMySpoon_
        someone_: to convert the element attribute value
      • hello jeremy
      • someone_
        hello
      • it wont work that way since i will need to do string.replaceALL(" ",""); for each
      • because values have separators just like currency has
      • but if thats only way :S
      • thomascheriy-sl joined the channel
      • thomascheriy-sl
        is there a way to escape single quotes (ie." ' ") in an xpath expression?
      • WhereIsMySpoon_
        thomascheriy-sl: backslash?
      • thomascheriy-sl
        //*[@onclick='validateFields(this, 'oneway')']
      • i tried backslash
      • but not working
      • WhereIsMySpoon_
        use double quotes for onclick=“..."
      • and escape those instead
      • chrisw__ joined the channel
      • WillPittenger_ joined the channel
      • Guest23256 has quit
      • Guest23256 joined the channel
      • WillPittenger has quit
      • WillPittenger has quit
      • hazmeister-sl has quit
      • someone_
        WhereIsMySpoon_: you have no other ideas of sloving my issue :S?
      • barancev
        I have an idea but you'll hardly like it. go to your devs and try to explain them what "testability" means :)
      • moshi has quit
      • someone_
        sadly the idea of converting every element to double fails becuase, i use value of select for start and if that value is taken from select field it will be like this "number:100000" but if it's from input field unlocked by select option than it is "100 000"
      • thomascheriy-sl
        @whereismyspoon - thanks it worked
      • someone_
        so propably i need another conversion...
      • moshi joined the channel
      • NOTICE: [13docs] 15manoj9788 pushed 1 new commit to 06gh-pages: 02https://github.com/SeleniumHQ/docs/commit/a05ff0851c7087e88d49f48552103470ea924f40
      • NOTICE: 13docs/06gh-pages 14a05ff08 15Hazmeister: Add Page Load Strategy to Shared Capabilities (#157)...
      • rnemeth1980-sl joined the channel
      • WillPittenger joined the channel
      • rnemeth1980-sl
        hi, is there someone familiar with setting the proxy for firefox? docs here http://docs.seleniumhq.org/docs/04_webdriver_ad... and this issue is pointing in the same direction with this code:
      • ` JsonObject json = new JsonObject();` ` json.addProperty("proxyType", "MANUAL");` ` json.addProperty("httpProxy", host);` ` json.addProperty("httpProxyPort", port);` ` json.addProperty("sslProxy", host);` ` json.addProperty("sslProxyPort", port);` ` capabilities.setCapability(CapabilityType.PROXY, json);`
      • spathare has quit
      • ` org.openqa.selenium.InvalidArgumentException: httpProxyPort was not a valid proxy configuration capability` ` Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'` ` System info: host: '45fb2c56975f', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.74-boot2docker', java.version: '1.8.0_131'`
      • WillPittenger joined the channel
      • WillPittenger joined the channel
      • Lina_ joined the channel
      • jeremy-tong-sl has quit
      • kpschmidt joined the channel
      • chrisw__ joined the channel
      • kpschmidt has quit
      • moshi has quit
      • indistylo joined the channel
      • moshi joined the channel
      • doing some research according this https://bugzilla.mozilla.org/show_bug.cgi?id=13...
      • Added an image: undefined
      • alavarre has quit
      • hazmeister-sl joined the channel
      • hazmeister-sl
        I wonder if you are meant to use `json.addProperty("httpProxy", "host:5000");`
      • rnemeth1980-sl
        I am still experimenting as I don't find any documentation, only pieces of the puzzle
      • hazmeister-sl
        Added an image: undefined
      • rnemeth1980-sl
        hazmeister-sl thank you o:)
      • hazmeister-sl
        no worries, I think you dug me out of a hole with noProxy, so consider us even :)
      • WillPittenger has quit
      • WillPittenger joined the channel
      • WillPittenger joined the channel
      • rnemeth1980-sl
        I still don't get how to define the noPrxy list
      • hazmeister-sl
        I think its as `url1;url2url3`
      • I did find there are some weird behaviours if you are not using latest selenium, ff and geckodriver
      • thomascheriy-sl has quit
      • rnemeth1980-sl
        I have stability issues with 3.0.1 so I am testing 3.6.0 right now, chrome and ff are running fine in the local docker grid, but I need proxy for k8s
      • if I set only one `json.addProperty("noProxy", "localhost");` then I get `org.openqa.selenium.InvalidArgumentException: "localhost" was not an array`
      • rnemeth1980-sl has quit
      • hazmeister-sl has quit
      • slackbot has quit
      • slackbot joined the channel
      • hazmeister-sl joined the channel
      • lucast
        hopefully images are working again...
      • hazmeister-sl
        or `json.addProperty("noProxy", ["127.0.0.1", "localhost"]);`
      • GodFather joined the channel
      • rnemeth1980-sl joined the channel
      • rnemeth1980-sl
        it does not work either `groovy.lang.MissingMethodException: No signature of method: com.google.gson.JsonObject.addProperty() is applicable for argument types: (java.lang.String, java.util.ArrayList) values: [noProxy, [127.0.0.1, localhost]]`
      • Rapture joined the channel
      • moshi has quit
      • WhereIsMySpoon_
        rnemeth1980-sl: json.addProperty("noProxy", “[127.0.0.1", "localhost]”);
      • [] in the wrong place
      • er
      • now the quotes are too
      • you get the idea
      • json.addProperty("noProxy", [“127.0.0.1", "localhost”])
      • antlong joined the channel
      • rnemeth1980-sl
        `json.addProperty("noProxy", "[127.0.0.1,localhost,selenium]");` and `json.addProperty("noProxy", ["127.0.0.1","localhost","selenium"]);` does not work
      • antlong has quit
      • lucast
      • going to take a breath and back away from taht one
      • antlong joined the channel
      • diemol-sl joined the channel
      • ollehar joined the channel
      • WhereIsMySpoon_
        T_T
      • hazmeister-sl
        rnemeth1980-sl `String[] noProxy = ["localhost", "127.0.0.1""]`
      • diemol-sl
        That's funny, when people comment on something without having the whole context @lucast Patience :)
      • hazmeister-sl
        `json.addProperty("noProxy", noProxy])`
      • @lucast run, run away
      • rnemeth1980-sl
        `String[] noProxyArray = ["127.0.0.1", "localhost", "selenium"]` `json.addProperty("noProxy", noProxyArray);` gives me `groovy.lang.MissingMethodException: No signature of method: com.google.gson.JsonObject.addProperty() is applicable for argument types: (java.lang.String, [Ljava.lang.String;) values: [noProxy, [127.0.0.1, localhost, selenium]] Possible solutions: addProperty(java.lang.String, java.lang.Boolean),
      • addProperty(java.lang.String, java.lang.Character), addProperty(java.lang.String, java.lang.Number), addProperty(java.lang.String, java.lang.String), hasProperty(java.lang.String) `
      • hazmeister-sl
        hmmm, the answer has to be in the GSON syntax somewhere
      • rnemeth1980-sl
        I need to set an array there but when I set one it won't be accepted
      • ollehar
        Hi ho. Does anyone understand this "empty" error message I get using phpunit together with Selenium? https://stackoverflow.com/questions/47017171/mi...
      • It pops up after $button->click().
      • WhereIsMySpoon_
        hey look
      • surprisingly, the other comments this guy has made are rude and “oh this would only take a few bucks and a few hours of time to do, why is this bad its all wrong waaaa”
      • in other projects
      • chrisw__ joined the channel
      • i replied to him saying to tone it down, doubt it’ll have much effect but w/e
      • ollehar: weird one. you sure there isn’t more trace? Can you maybe get the driver log?
      • ollehar
        Yes, there's a PHP trace. But it doesn't make much sense. Wait...
      • WhereIsMySpoon_: OK, added the PHP trace, will check driver log. https://stackoverflow.com/questions/47017171/mi...
      • WhereIsMySpoon_
        blah
      • that isnt useful :P
      • ollehar
        I know.
      • Hm. Can't find driver logs. In fact, I'm not sure which driver I'm using...
      • WhereIsMySpoon_
        what browser are you using
      • ollehar
        Maybe I should just test with the FaceBook one instead.
      • Firefox
      • WhereIsMySpoon_
        geckodriver then
      • ollehar
        56
      • right
      • WhereIsMySpoon_
        the facebook php bindings are generally preferred
      • ollehar
        OK.
      • WhereIsMySpoon_
        they arent official
      • ollehar
        I'll try that, thanks.
      • WhereIsMySpoon_
        but they’re the most worked on
      • afaik
      • there’s about 15 different php bindings for selenium, unfortunately
      • and there is nobody on the selenium team that wants to do php dev :) so there’s no official one
      • AutomatedTester
        :geckodriver
      • selbot2
      • chrisw__ joined the channel
      • kpschmidt joined the channel
      • kpschmidt
        During the construction of a RemoteWebDriver, to a hub, if the provided DesiredCapabilities specifies a Proxy, does the hub or remote end do any sort of validation of the provided proxy as part of the process in establishing a successful session?
      • someone_
        How to evoke driver.quit after each method? I tried @Aftermethod but it kinda.. failed
      • ollehar
        Similar error for Facebook driver: https://stackoverflow.com/questions/47017171/mi...
      • balaji joined the channel
      • Strange :P
      • kggr has quit
      • WhereIsMySpoon_
        UnrecognizedExceptionException
      • great
      • so useful
      • ollehar
        Yeah. X|
      • Ded.
      • I can check the code.
      • WhereIsMySpoon_
        get the geckodriver logs
      • lucast
        did they finally make the facebook php bindings w3c compatible?
      • mfsi_ankitm has quit
      • Staunch joined the channel
      • ollehar
        WhereIsMySpoon_: Hm, where would I find those?