saucelabs

Issue installing extension with Selenium remote Firefox webdriver in Saucelabs

谁说我不能喝 提交于 2019-12-06 12:33:14
Issue Trying to install a Firefox browser extension during remote execution of Selenium tests on Saucelabs. When executing the tests locally, the extension is installed and active in Firefox, but in remote execution on Saucelabs the extension does not appear in the list of installed extensions. Following the steps outlined in this Saucelabs support article . Setup Selenium.Support v2.48.2 or v2.49.0 Selenium.WebDriver v2.48.2 or v2.49.0 Windows 10 or 7 Firefox 43 C# test setup private static FirefoxProfile CreateFirefoxProfile() { FirefoxProfile profile = new FirefoxProfile(); profile

Getting the Angular Content to load in protractor tests

ε祈祈猫儿з 提交于 2019-12-06 09:40:54
I have an angular application that I am writing e2e test for using protractor. Following is my conf.js file setup var project = require('./package.json'); var HtmlReporter = require('protractor-jasmine2-screenshot-reporter'); var multiCapabilities = [{ 'browserName': 'chrome' }]; multiCapabilities = [{ 'browserName': 'chrome', "platform": "Windows 7", 'build': 'Testing', 'name': project.name + ' tests' }] exports.config = { framework: 'jasmine2', sauceUser: 'blahblhablah', sauceKey: 'xyzabcdxyzabac', multiCapabilities: multiCapabilities, specs: ['e2e/main.spec.js'], jasmineNodeOpts: {

Get Session ID for a Selenium RemoteWebDriver in C#

可紊 提交于 2019-12-05 04:33:29
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 essentially useless for what I need. Any help is appreciated. In order for this to work, I had to create a

Running e2e tests on Sauce Labs from Protractor on Travis

杀马特。学长 韩版系。学妹 提交于 2019-12-04 00:28:02
So I have my open source project ( https://github.com/ahmednuaman/radian ) and I have some e2e tests that run fine locally using Protractor . I've followed the Sauce Labs docs and set up my .travis.yml accordingly. The tests run right to the point where Protractor tries to connect to selenium server on Sauce Labs, this is a brief snapshot of the error: Running "exec:e2e" (exec) task Using the selenium server at ahmednuaman-radian:06dd4e07-0f52-4fdf-be5e-389f2117bbf5@localhost:4445 >> >> timers.js:103 >> if (!process.listeners('uncaughtException').length) throw e; >> ^ >> TypeError: Cannot read

WebDriver - element is not clickable Chrome

≯℡__Kan透↙ 提交于 2019-12-03 12:18:46
问题 I have following problem. I run test on Firefox and Chrome. On Firefox test run correctly but on Chrome SauceLabs give a message: unknown error: Element is not clickable at point (717, 657). Other element would receive the click: <div class="col-md-9 col-sm-12" style="margin-top:8px;">...</div> (Session info: chrome=36.0.1985.125) (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64) I choose element by unique css selector in both test in the same way: driver.FindElement(By

WebDriver - element is not clickable Chrome

拟墨画扇 提交于 2019-12-03 02:37:07
I have following problem. I run test on Firefox and Chrome. On Firefox test run correctly but on Chrome SauceLabs give a message: unknown error: Element is not clickable at point (717, 657). Other element would receive the click: <div class="col-md-9 col-sm-12" style="margin-top:8px;">...</div> (Session info: chrome=36.0.1985.125) (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64) I choose element by unique css selector in both test in the same way: driver.FindElement(By.CssSelector("button.btn-xs:nth-child(1)")).Click(); Any ideas what is wrong here? I am assuming that you

What is a non-deprecated way to do `new.classobj(name, (base_class,), my_dict)`

百般思念 提交于 2019-12-02 05:30:27
I found in saucelabs example.py file the following code snippet using the import new module. import new # .. snip .. def on_platforms(platforms): def decorator(base_class): module = sys.modules[base_class.__module__].__dict__ for i, platform in enumerate(platforms): d = dict(base_class.__dict__) d['desired_capabilities'] = platform name = "%s_%s" % (base_class.__name__, i + 1) module[name] = new.classobj(name, (base_class,), d) return decorator However reading the help(new) shows that that module is deprecated. What is a non-depreciated way to do new.classobj(name, (base_class,), d) The type

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

元气小坏坏 提交于 2019-11-29 08:44:49
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 FIREFOX This is Platform String WIN8 This is Version String 25 log4j:WARN No appenders could be found