Run Selenium tests in TestWise on macOS Big Sur (Apple Silicon)

Run Selenium tests in TestWise on macOS Big Sur (Apple Silicon)

macOS Big Sur 11 is released today. The first task I assess machine/OS for software development is to run Selenium WebDriver tests. The short answer is "mostly yes".

  1. Selenium WebDriver in Ruby. ??

macOS 11 comes with a Ruby distribution (v2.6.3), which works fine. I installed rbenv (with standard HomeBrew) to use the latest Ruby 2.7.2.

2. TestWise ??

TestWise 6 is not purposely built for macOS Big Sur yet, like most mac apps, TestWise runs fine using the OS's Rosetta 2.

3. Chrome & ChromeDriver ??

My preferred browser for test automation is Chrome. But, current stable Chrome v86 does not work on Apple Silicon yet, Chrome Canary (v88) works fine though. I think we just need to wait a few days/weeks for the new Chrome release.

4. Get Selenium tests running in Safari 14. ??

Comparing to Chrome, you need to specifically enable test automation in Safari.

Open Safari Preferences -> "Advanced" -> "Show Develop menu in menu bar"

No alt text provided for this image

Then select 'Develop' menu -> "Allow Remote Automation".

Here is the screenshot of a successful Selenium test execution in TestWise 6 on Apple's new OS running new chip (ARM).

No alt text provided for this image


Lei Yao

Developer in Test

4 年

How about the speed, faster?

回复

要查看或添加评论,请登录

Zhimin Zhan的更多文章

社区洞察

其他会员也浏览了