
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi everyone,
I'm using Silktest WorkBench 13.5, WIndows 7 64 bits and vb .net
I have four browsers opened at same time, I can't get toggle between theirs from SilkTest, how can I get a correctly interaction with all browsers opened
I using this lines:
(This get interacction with the first one page, but the second page doesn't work)
Shell("C:\Archivos de programa\Internet Explorer\iexplore.exe " & "http://www.mypage1.com/", vbMaximizedFocus)
System.Threading.Thread.Sleep(15000)
With _desktop.BrowserApplication("webBrowser")
.SetActive
With .BrowserWindow("browserWindow")
.DomLink("Quiénes Somos").Click
End With
End With
Shell("C:\Archivos de programa\Internet Explorer\iexplore.exe " & "http://www.mypage2.com/", vbMaximizedFocus)
System.Threading.Thread.Sleep(15000)
With _desktop.BrowserApplication("webBrowser")
.SetActive
With .BrowserWindow("browserWindow")
.DomLink("search").Click
End With
End With
Thanks in advanced
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi, a suggestion here would be to create 4 object maps, one for each domain that your browser will navigate to, e.g. ‘webBrowser_mypage1’, ‘webBrowser_mypage2’, and so on. In each object map add a unique locator path for the required browser window such as one that uses the caption property of the browser, e.g. /BrowserApplication[@caption='mypage1 – Windows Internet Explorer'], or however the caption appears for your websites.
Silk Test 14.0 handles this scenario much better by using a URL pattern based on the websites domain name and creates separate objects for each different URL pattern. It is now available to download from the SupportLine product updates page..
John

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi, a suggestion here would be to create 4 object maps, one for each domain that your browser will navigate to, e.g. ‘webBrowser_mypage1’, ‘webBrowser_mypage2’, and so on. In each object map add a unique locator path for the required browser window such as one that uses the caption property of the browser, e.g. /BrowserApplication[@caption='mypage1 – Windows Internet Explorer'], or however the caption appears for your websites.
Silk Test 14.0 handles this scenario much better by using a URL pattern based on the websites domain name and creates separate objects for each different URL pattern. It is now available to download from the SupportLine product updates page..
John