When creating a hyperlink in powerpoint or word 2010 to take the user to our website, the link changes from what I put in powerpoint to include a "?target=" tag after the domain name followed by the remainder of the link. This then for some reason forces the user to log in again before accessing the website (a secured site) even if they are already logged in. However, if the link I provided is pasted in the browser as I thought powerpoint would basically do, everything works as intended and the user is brought to the desired location within our site if logged in.
I ended up getting it to work via a method with vba, but I was wondering if anyone could explain why this might be happening. I'm not entirely sure if this is something on our end or something to do with powerpoint or maybe both. Thanks.
This is likely due to the behavior https://github.com/spilliton/fix_microsoft_links is designed to fix.
Basically this is because when Office products try to open a link, they open it internally, follow any redirects, and analyse the resulting document to see if it can be opened with an Office application. When the link needs to be opened with a browser, they forward on the final url (result of a redirect) to the browser, which in your case is the login page. When opened in the browser, it notices we are already logged in and redirects to wherever your application goes in that case, possibly the login page
Related
A friend of mine has an Odoo website linked to many other functionalities but that I don't think are relevant for the case. His problem is that he would like to change the URL of one of the button on its website to an external link. I looked around and can only see developper's solution and his eternal dev deprioritized it so he is a stuck. I looked around and saw the possibility to maybe change things on the website builder, what I did sequentially:
activated developer mode
went to "Website"
Clicked "Modify" (or maybe "Edit" with the English settings) at the top right corner
clicked on the button he wants to change the redirect link of
a modal appears and then asks me for relative URL only
Is there any way, without going into the code, to make this modal accept absolute URL instead of relative ones
Thanks
I am writing a test that verifies that a warning to the user before the user opens a document. If the user says that they still would like to open the document, the document opens in an external application (pdf or word).
But now I have an external application over the browser window, and it messes up for other tests.
So, what are the best practices around this kind of issue? Rewrite of the appliction to allow for not opening documents in test?
Added description:
The problem is twofold.
1) It starts processes (word and acrobat) that fills the desctop and requires resources from the test-slave
2) The external process seems to interfer with other tests since (guessing here) it is located over the browser window.
what i understood from your post is, the document(word/pdf) is opening in the browser window hence you are not able to proceed with further steps. If so, you can verify the Title to make sure the document is opened in browser window and can navigate back using below snippet.
driver.navigate().back();
Hope this helps.
What I understand from the line
'But now I have an external application over the browser window, and it messes up for other tests.'
is that once user clicks on open button a new window opens up (Window based application) since you have mentioned PDF or Word.
You can use robot class in such cases, below code snippet will close the current active window:
Robot rbt = new Robot();
rbt.keyPress(KeyEvent.VK_ALT);
rbt.keyPress(KeyEvent.VK_F4);
rbt.keyRelease(KeyEvent.VK_ALT);
rbt.keyRelease(KeyEvent.VK_F4);
Make sure you deal with sync issues properly so that intended window is closed instead of AUT.
I need to log into a website (reuters.com) once programatically and then I would like to use a cookie so that the site remembers that I am logged into and I don't have to log in everytime I change webpages within the site. What is the best way to do this?
See Auto login form with Visual Basic.
You first need to get the element that you want to interact to, then set its value.
We've been having trouble with inconsistent display of the like button comment field on our external sites (i.e. some people see it pop up after clicking the like button, and some people don't). We searched around and made sure that the app id referenced when loading the HTML5 version of the like button code matched the website domain in the app settings (per this thread), and finally determined that the "problem" is the user's security settings: if they have enabled "secure browsing" in their security settings, then they won't see the comment field pop up unless the page is also hosted securely. (only other place I could find this discussed is on this site)
Has anyone figured out a workaround for this? It appears that the iframe version doesn't have this problem (though it does make the user click a link to see the comment field), but it requires 400px of minimum width which busts our layouts. We want to always make the comment field appears after the user clicks the like button, but it isn't feasible for us to host every page on the site securely. Any suggestions?
I've built a web part for SharePoint 2010.
Using SharePoint Designer I've got it to work on every page within the site, but then I realized that I only want it to work when users navigate document libraries.
Is there any way to do that? If not, how can I check that condition from the web part?
Using SharePoint Designer I've got it
to work on every page within the site
Does this mean you have embedded it in the master page?
A quick and dirty way; you could check the url for /Forms/ and only show it then.