saucelabs

Is there way to disable CORS check using RemoteWebDriver for SauceLabs

我只是一个虾纸丫 提交于 2021-02-17 05:54:05
问题 Question says it all, I m trying to execute some selenium tests on SauceLabs, the test loads a webpage that makes a cross domain request. I was thinking is there a way to disable CORS, in platform-independent way through code. 回答1: While using ChromeDriver / Chrome combo to disable cors check you can use the --disable-web-security argument. which is defined in content_switches.cc as: // Don't enforce the same-origin policy. (Used by people testing their sites.) const char kDisableWebSecurity[

How to customize screen resolution with saucelabs (selenium, behat3.0 mink) capabilities

断了今生、忘了曾经 提交于 2021-01-28 22:58:12
问题 This is my behat.yml file : firefox: suites: firefox: contexts: -FeatureContext extensions: Behat\MinkExtension: javascript_session: selenium2 base_url: https://example.com selenium2: wd_host: username:pwd@ondemand.saucelabs.com/wd/hub browser: firefox capabilities: {'platform':'OS X 10.10', 'browser':'firefox', 'version':'42.0', "screen-resolution":"1280x1024"} Which is giving error " [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "screen

Karate - UI Testing - When using Zalenium Safari and MSEDGE immediately error on driver/session call => no capabilities found

断了今生、忘了曾经 提交于 2021-01-28 18:38:37
问题 git project: https://github.com/jbart18/karate_testing I'm trying to simplify having the main browsers (Chrome, Firefox, Edge & Safari) working via Zalenium. It seems the most simple approach and have been able to get chrome and firefox (gecko driver) running/working straight away. The problem lies within Edge and Safari and the inability to submit capabilities in the session request. I am running on Windows 10 professional and have been able to get tests working for: edge: through specifying

How to set sauce-labs job result as pass or fail using karate?

♀尐吖头ヾ 提交于 2021-01-27 18:54:57
问题 I'm trying to run a simple test scenario on sauce-labs, but the issue is that sauce-labs doesn't identify the test-status as passed or failed on its own. I've gone through multiple solutions but couldn't make any of them work. I would love to know if we can do something in the feature file rather than doing something externally if possible. Following are my feature and java files. Feature File Java File Any help will be appreciated. I'm a JAVA newbie & just starting on the Karate Framework

Get Session ID for a Selenium RemoteWebDriver in C#

二次信任 提交于 2020-02-02 02:25:32
问题 I'm trying to get a session id for a test being run on the SauceLabs cloud, but I can't seem to access it. I've tried the following approaches: //Returns null var sessionId = (string)((RemoteWebDriver)driver).Capabilities.GetCapability("webdriver.remote.sessionid"); //Will not compile sessionId = ((RemoteWebDriver)driver).SessionId; //This is protected. The second approach is particularly confusing. It's a protected property, but if I can only access this from a derived class, then it's

Get Session ID for a Selenium RemoteWebDriver in C#

纵然是瞬间 提交于 2020-02-02 02:25:06
问题 I'm trying to get a session id for a test being run on the SauceLabs cloud, but I can't seem to access it. I've tried the following approaches: //Returns null var sessionId = (string)((RemoteWebDriver)driver).Capabilities.GetCapability("webdriver.remote.sessionid"); //Will not compile sessionId = ((RemoteWebDriver)driver).SessionId; //This is protected. The second approach is particularly confusing. It's a protected property, but if I can only access this from a derived class, then it's

XCUITest Simulator architecture appears to be unsupported by the Appium

守給你的承諾、 提交于 2020-01-23 14:40:05
问题 I am trying to test my react native iOS app in saucelabs(appium). Saucelabs require a file zip of .app folder created after the xcode build. I am using following steps(bitrise steps) to create the .app folder and the zip file. 1) Set Xcode Project Build Number 2) Xcode Archive & Export for iOS Once the zip file is created it is uploadedin the saucelabs. When I execute the tests in saucelabs, I get the following error from the appium server. > 2018-06-20 08:58:53:668 - [XCUITest] *************

How do I detect that SSL is broken on a page, using Selenium

邮差的信 提交于 2020-01-05 06:38:13
问题 We have pages where we occasionally see compromised SSL certificate because of third party scripts that load non HTTPS resources (Initially they're fine but they occasionally change). We would like to test those pages for broken SSL every day. We have tried one approach, attempting to catch a pop-up message that would indicate that we have insecure content on the page. However, we have been unsuccessful in simulating the pop-up message through selenium. It appears that selenium has

Is there a possible way to run two .xml files in testng.xml parallel?

半腔热情 提交于 2019-12-28 19:39:32
问题 I currently have two different TestSuites (SUITE1.XML and SUITE2.xml) with different configurations (e.g browsers, Os)... I call both SUITES inside testng.xml to run on saucelabs... and it runs fine... Only what I am concerned is, I want these suites to run parallel instead of sequential... The output i get is [TestNG] Running: /Users/muzamilabbasi/Automation/BaublebarTest/Suite1.xml This is Browser String FIREFOX This is Platform String WIN8 This is Version String 25 This is Browser String

Is there a possible way to run two .xml files in testng.xml parallel?

大兔子大兔子 提交于 2019-12-28 19:39:21
问题 I currently have two different TestSuites (SUITE1.XML and SUITE2.xml) with different configurations (e.g browsers, Os)... I call both SUITES inside testng.xml to run on saucelabs... and it runs fine... Only what I am concerned is, I want these suites to run parallel instead of sequential... The output i get is [TestNG] Running: /Users/muzamilabbasi/Automation/BaublebarTest/Suite1.xml This is Browser String FIREFOX This is Platform String WIN8 This is Version String 25 This is Browser String