sauce-archives / sb-sauce-plugin

Sauce Plugin for Selenium Builder
1 stars 5 forks source link

Command execution failure #3

Open Zarkonnen opened 10 years ago

Zarkonnen commented 10 years ago

Jace Martin writes:

I seem to be getting this error with clickAndWait command. At first I thought it was because I updated to Firefox 28 so I downloaded and installed 27.0.1 but I am still getting that error message. It works perfectly if I run it locally but not when I run using Sauce on demand plugin for builder.

screenshot 2014-04-01 10 48 46

Zarkonnen commented 10 years ago

OK, this appears to be a problem with the backend, as I can repro it sans the use of Builder:

This fails:

from selenium import selenium
import unittest, time, re

class playback(unittest.TestCase):
    def setUp(self):
        self.verificationErrors = []
        self.selenium = selenium("ondemand.saucelabs.com", 4444, '{"username": "zarkonnen", "access-key": "[REDACTED]", "os": "Windows 8", "browser": "firefox", "browser-version": "29"}', "http://sebuilder.github.io")
        self.selenium.start()

    def test_playback(self):
        sel = self.selenium
        sel.open("/se-builder/")
        sel.wait_for_page_to_load("60000")
        sel.click("link=Plugins")

    def tearDown(self):
        self.selenium.stop()
        self.assertEqual([], self.verificationErrors)

if __name__ == "__main__":
    unittest.main()

This (using Chrome instead of FF) succeeds:

from selenium import selenium
import unittest, time, re

class playback(unittest.TestCase):
    def setUp(self):
        self.verificationErrors = []
        self.selenium = selenium("ondemand.saucelabs.com", 4444, '{"username": "zarkonnen", "access-key": "[REDACTED]", "os": "Windows 8", "browser": "googlechrome", "browser-version": "29"}', "http://sebuilder.github.io")
        self.selenium.start()

    def test_playback(self):
        sel = self.selenium
        sel.open("/se-builder/")
        sel.wait_for_page_to_load("60000")
        sel.click("link=Plugins")

    def tearDown(self):
        self.selenium.stop()
        self.assertEqual([], self.verificationErrors)

if __name__ == "__main__":
    unittest.main()

Forwarding this to Sauce support.