Contributions
Can not Javascript command - Selenium 4.7 Safari - NotImplementedException
Hi we needed to run our test suite in Mac/Safari. Any Javascript ran with.ExecuteScript() results in System.NotImplementedException : POST /session/84C2EE5C-6F85-4F5C-94A7-21D0B4FD0F08/execute/sync Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z' System info: host: 'macsi4493-3.local', ip: 'fe80:0:0:0:e2:382f:91c1:3621%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_112' Driver info: driver.version: unknown TearDown : TechTalk.SpecFlow.SpecFlowException : POST /session/84C2EE5C-6F85-4F5C-94A7-21D0B4FD0F08/execute/sync Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z' System info: host: 'macsi4493-3.local', ip: 'fe80:0:0:0:e2:382f:91c1:3621%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_112' Driver info: driver.version: unknown We are using Selenium 4.7864Views0likes0CommentsRunning tests parallelly using selenium in CBT on iphone devices - need help troubleshooting
Hello, I had some success running tests in Selenium using CBT to test on mobile safari on iphone 12. However while test scenarios run fairly consistently in CBT when ran individually, running them parallelly does NOT work - most tests fail with one of the two errors which occur before the scenario is entered: Error #1: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://hub.crossbrowsertesting.com/wd/hub/session. The status of the exception was KeepAliveFailure, and the message was: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. -> The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. -> Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. -> An existing connection was forcibly closed by the remote host.... Error #2:Unexpected error. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html>.... I have 5 tests being span simultaneously on CBT. The failures usually start after the first 3-6 tests. Its still unclear to me if these tests run parallelly in one device or if multiple devices are being used. Any helphelp troubleshooting these errors will be appreciated. Thanks in advance!1.1KViews0likes1CommentRe: Running Selenium scripts on iPhone Safari
Hi Nick, Hoping I can reach out for help again. I've been experimenting with the c# selenium getting started script for iPhone 11/13. When the code creates a driver object successfully, the driver.Navigate().GoToUrl("https://www.publix.com/"); call exits before the site is displayed and evaluating driver.Title results in FORWARDING_ERROR: connect ECONNREFUSED 10.191.85.10:12993. The CBT site ui shows the below. Other times, creation of Webdriver fails object with this:System.InvalidOperationException HResult=0x80131509 Message=A new session could not be created. Stacktrace: FORWARDING_ERROR: connect ECONNREFUSED 10.191.85.12:13023 (SessionNotCreated) Source=WebDriver StackTrace: at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.WebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout) at ios_testing.BasicTest.TestIos() in C:\Users\Administrator\source\repos\IOStest\UnitTest1.cs:line 44 Please let me know if you can think of anything I can try2.3KViews0likes1Comment- 2.6KViews0likes0Comments
Running Selenium scripts on iPhone Safari
Hello, Could you please point me in the right direction to set up Selenium scenarios suite to run remotely on iPhone in Safari? I would like to know if iPhone 13 is supported and if so is there a limit on the number of iPhones to run scenarios in parallel. Thank you!Solved2.6KViews0likes6Comments