Ask a Question

TestComplete - Running scripts on Safari 15 browser testing Macbook Pro

nathanginoza
Contributor

TestComplete - Running scripts on Safari 15 browser testing Macbook Pro

Hi All,

 

We have the requirement for automation for iOS 15 on Macbook Pro using Safari 15. Looking for input for the community how this can be done.

 

I looked on the cross browser testing site and it is not up to date with mac support.

 

All of are scripts are using code with no dependencies or object repositories.

 

I used the iOS iPhone TC solution before with great success. Wondering if there is anything for MacOS?

 

TIA,

Nathan

 

 

 

 

 

 

 

2 REPLIES 2
hkim5
Staff

if you cannot find that specified browser type on CBT,

Then you could potentially make your own Selenium serer on a macbook running ios15 (if you have one)

and use runremotebrowser

def Test4():
  caps = {"browserName": "safari", 
                "maxInstances": "1", 
                "platform": "MAC", 
                "platformName": "MAC", 
                "seleniumProtocol": "WebDriver", 
                "server:CONFIG_UUID": "df3d0a81-XXXXXXXXXXX...", 
                "technologyPreview": "false"}
  Browsers.RemoteItem["http://10.0.24.73:4444/wd/hub ", caps].Run("https://smartstore.alertsite.com/")
  Sys.Browser("*").BrowserWindow(0).Maximize()

  page = Sys.Browser("*").Page("*")
  page.FindElement("//a[.='Contact us']").Click()
  page.FindElement("//input[@id=(//label[.='Your name']/@for)]").SetText("something")
  page.Close()
  
  
Best,
Justin Kim
sonya_m
SmartBear Alumni (Retired)

Hi @nathanginoza , please note that you replied straight to the email notification and your reply didn't reach the community. Please copy the reply here. Thank you.


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: