narcisse
narcisse

Reputation: 451

switch between applications in silk4j

I have a test thant launches a desktop application and from this application a browser application with authentication window is launched. The problem is when running the test it executes all steps that are related to the desktop application and when it comes to the browser it fails to detect it any help?

Upvotes: 0

Views: 567

Answers (2)

The silkTest Girl
The silkTest Girl

Reputation: 3

After desktop application steps, to connect to the browser application (which has been opened through desktop app) you can use below code,

Desktop.attach("\BrowserApplication");

Desktop.< window >find ("\BrowserWindow[@caption='']").setActive();

Upvotes: 0

John Lyttle
John Lyttle

Reputation: 31

Which version of Silk Test and which browser + version are you testing against? As older versions of Silk Test may not provide support for the more recent browser versions. That's why it is recommended to stay version current.

Also if you log an incident via [email protected] we would be happy to have a look at the issue in detail.

Upvotes: 0

Related Questions