Powershell accessing browser tabs - browser

We are using PowerShell to automate testing of our website.
The process is as follows:
We open a tab containing a report and then we click on the print button which opens a new tab which contains a printer friendly version of our report but then when we try to print the printer friendly page it still has focus on the originating page and not the newly created page. How would we get a handle on the new page so we can print it and then close it.
Any help would really be appreciated
Thanks
Richard

I would just ensure the browser is set to activate the new tab when it is created. In Firefox, this is done via Tools > Options > Tabs > "When I open a link in a new tab, switch to it immediately".
I'm sure there must be a similar setting in IE.

Related

Office Web Apps Server 2013 - Cache issue

Please, consider this scenario:
I open file A.pptx and take it in view mode
Click on "Edit in browser" button and file opens in edit mode correctly.
Then, open file B.pptx in view mode.
Click on "Edit in browser" button and OWA opens file A.pptx contents in edit mode but using file B.pptx properties.
I think it's some related with cache but I cannot solve it.
Any help will be appreciated. Thanks.
UPDATE 20151222:
I was able to reproduce this behavior using Excel Web App getting same results.
It seems like it's something related with "SessionID" based on some Event Viewer log entries:
Event Viewer - 1
Here's the code fragment I'm using to generate these IDs:
Code Fragment
Thanks any help.

Tabbed Coded Windows With Dreamweaver Layout?

Can anyone tell me if there is a way to manage more than one website in Dreamweaver at the same time? As I understand it now, every time I need to get a page from a website, I have to change the current site by selecting another site in the Files dropdown... Is there a way to have something like "tabs" where you can instantly switch between different websites without having to click the Files drop-down, select the website, wait for FTP to connect, and then browse that website?
I am using Adobe Dreamweaver CS6 and when I open multiple webpages, they are on tabs already. On the fist screen shot i provided, you can see that index.html and album.html are both opened. If you click on the restore button on the active window (icon encircled), it is manageable like the other image I attached.

xPage as Welcome Page

I am trying to setup xPage as Welcome page for notes client and to be deployed via policies. Only issue it opens up 2 window, one which is Bookmarks.nsf frameset and second one is the xPage. Tried many different ways to close frameset, but some internal setting doesn't like this since its a welcome page frame... any ideas or if somebody has done similar project.
I tried opening a view thru welcome page which opens up the xPage and then to close the view in Postopen event, but no luck. also tried same with Form.
Appreciate help .. badly stuck in it.
One way to do that is:
open your xpage in the client
right click on the tab and create a new bookmark for it
right click on the newly created bookmark and click "set bookmark as home page"
I don't know if you can do that via policies, but at least it works if I do it interactively
You can set this by policy by adding to the ini
StartupDB =
That will load the NSF every time the client opens. This command does not respect the enforce flag as its enforced by default, do not set the enforce flag...
You can also set the nsf to replicate by policy so remote users will be able to open it as well.

WatiN: How to Run the exe file instead of Saving it from the FileDownloadHandler

I am new in using WatiN and couple it with C# for my automation needs. I am faced with a situation here. I need to run an executable from a server location. After having clicked on the download link in the IE, I have a file download pop-up in front of me and a "File Download - Security Warning" on top. The UI presents me with 3 options of Run, Save and Cancel.
I want to click the Run button to run the exe directly (and not hit Save to download it to some location). I have added the dialog handler for my filedownloadhandler to my IE instance. Please find the screen-shot attached
Is there a way in WatiN to accomplish this? Any sample code is highly appreciated.
Thanks.!
Capture Run
Try this
Use your existing dialog handler add and remove but the type of handler you would add would be
WatiN.Core.DialogHandlers.FileDownloadHandler dialogHandler1 = new WatiN.Core.DialogHandlers.FileDownloadHandler(WatiN.Core.DialogHandlers.FileDownloadOptionEnum.Run);
Note that this won't work with IE 9. I have an open post on this (Download Handler for IE9).
Hope this helps.
Cheers.

Can't add webpart to SharePoint page

On my sharepoint site I am unable to add an existing basic webpart to a page where I've added webparts before. I am a site owner. I am using IE 8. I also work remotely using VPN.
The strange thing is IE won't even open up the EDIT MODE.
When I use Google Chrome, it is able to open up EDIT MODE, and it was also able to open up the Add Web Part popup, but when you actually select a web part and press ADD...nothing gets added to the main page.
The extra strange thing is from Google Chrome, I am able to delete and modify existing webparts.
I've upgraded to IE 9 and the same issue still happens.
i assume the similar issue you would be facing with firefox it seems your css is not compliant with IE8 try using ie8 in campatibility mode or use following querystring parameter at end of ur url
toolpaneview=2 and see what is the result
I had that problem and it appeared that a CSS file was messing up with the Ribbon controls.
Try to disable a CSS file at a time.
Regards,
Pedro
We had this issue (or at least a very similar one) where, in edit page mode, clicking on 'Add a Web Part' had no effect. I was assuming that it is a JavaScript issue. In, I beleive, the same day, it effected both my Production and DEV Site Collections, in IE8, Firefox and Chrome. We restarted all of our servers and ran the config wizard. No good.
We were able to create new pages which seem to be uneffected.
For an existing page, our workaround is to edit the properties of the page, then, down at the bottom, select 'Open Page in Maintenance View'. Select one of the Web Parts and Close it. Note: It seems as though if you unselected the 'Allow Close' checkbox, it wont be on this list. Then click on the 'Go Back to Web Part Page'. Click on the zone where the closed Web Part was. You may now be able to 'Add a Web Part'. If so, the last Web Part folder on the left will be 'Closed Web Parts' which I beleive you can put back (Open) the closed Web Part.
I have see this issue occur when someone else has the current page open in edit mode. Until that person either checks in or undoes there checkout you will not be able to edit the page.

Resources