IE 11 not remembering login from 1st tab to the 2nd tab in same IE Session - authentication

I've had an issue for a while, where my IE 11 does not remember the login for a site from 1 tab to the next.
I can login to a site with no issue, but if I click a link & want to open it into a new tab (within the same IE window) the new tab will show that I'm no longer logged into that site.
The same thing applies to when I'm placing an order online & if I open a new tab from that same site, then the items which were in my cart, no longer exist.
NOTE: I wanted to post 2 screenshots I had, but the site won't let me post those, let me know how I can those to someone if want to see them.
I have tried a few things relating to changing settings in IE, one was from this site & the other from Microsoft & a couple of others from other sites.
NOTE - site won't allow me to post more then 1 link, if you need more info, let me know how I can get it to you.
IE11 does not send session cookie when a link targeting a new tab is clicked (on first request)
None of these of these has worked & I haven't seen the question asked specifically the way I've posed it.
Any help is appreciated.
Thanks

I have noticed similar behavior is triggered when X-UA-Compatible changes mode between pages, especially when the session starts with IE=edge and gets switched to IE=7 on a later page. It seems session cookies are lost in the new IE PID started up for the IE 7 compatibility mode page. Does that happen to apply at all to your situation?

Related

Internet Explorer 11 Browser session becoming corrupt

I'm having an issue with a random set of users running Windows 10 and IE11. When the issue occurs the user are in an IE 11 browser session and will see among other things that selected div sections will scroll text but the textboxes and dropdowns will remain static within that div.
The current fix is to start a new browser session not just a new window. Currently this only occurring in about 15-20 out of 700 users. Pages are running with doc mode Edge and user agent default.
I realize this is a rather sparse explanation but that is what I have so far. Does anyone have a suggestion as to what could be causing the issue or a tool that would allow further investigation into the browser session?
From your description, I assume that this issue is not related with website and issue is with IE browser.
I suggest you to check for latest Windows and IE related updates. If any new updates are available than try to install new updates and again check for the issue.
If no any new updates available than try to reset the Internet Explorer browser to check whether it fix the issue or not.
If issue persist than you can try to unchecked the Internet Explorer option from Turn Windows features on or off and again try to check that option to add the IE again.
Let us know about your testing results. If issue persist than we can try to provide further suggestions.

Page cannot be Automated using Selenium

During automating a website after navigating several pages I reach a page where I cannot perform any action using Selenium. Even when I try to get current title or current URL, I get the stuff from very previous page and if I do some random click anywhere on page it happens on the previous page.
In short this particular page cannot be automated or It does not have driver to perform action(driver remains on the previous page). So I want to know Is it possible that a particular page cannot be automated using selenium or a particular property that is set to prohibit doing automation.
If NO then how can I handle such situation? How can I make driver to work on current page.
From your comments, the new page is actually in the new browser window. Reading the documentation might be helpful. Here's another stackoverflow question that could help you too.
The general idea would be to use (in python) the driver.window_handles property to keep track of browser windows before and after the new window opens, then driver.switch_to_window(new_browser) so that subsequent actions point to the new browser.
Don't forget to use driver.switch_to_window() to get back to the original when you need to.

Why I can programmatically access only the first loaded page?

I have very weird issue with some VBA code. The code is InternetExplorer automation and it's really simple: I just need to load page, enter credentials and click on the button on another page (after successful login).
But... My code is not working (but only on one of my machines on AWS). On my local machine this code works fine.
The weird thing is that it seams I have access only to the Document property of the first loaded page (where I need to enter login/password). I mean from MyBrowser.Document property I can see all INPUT fields when I load start page. But after successful login (the IE window is visible) I see same INPUT fields from MyBrowser.Document property! Also (as I said) I have no issues with this code on another maching.
IE Protected mode is disabled (this is IE 11). I think this is some kind of security issue but I can't locate it by myself...
Here is my code:
'MyBrowser is IE instanse
'Here I'm loading start page and input login/password
'Next the browser show me another page where I need to click a button
'But Debug messages show me input fields for the first Form!
Application.Wait (Now + TimeValue("0:00:05"))
Do
DoEvents
Loop Until MyBrowser.ReadyState = READYSTATE_COMPLETE
Set HTMLDoc = MyBrowser.Document
For Each myHTML_Element In HTMLDoc.getElementsByTagName("INPUT")
If myHTML_Element.Type = "submit" And myHTML_Element.Name = "BUTTONNEWJOBS" Then myHTML_Element.Click: Exit For
Debug.Print myHTML_Element.Name
Next
UPDATE
I don't know why but my browser object is always Busy that's why I get old page HTML. I tried to .Stop it but with no luck.
I don't have answer for IE11 automation, just a hint for a path you may choose to walk.
Another Stack Overflow question Getting source of a page after it's rendered in a templating engine? provides some browser automation options.
One of the mentioned tool has currently broken support for IE11 due to a IE11 behavior change, see http://docs.seleniumhq.org/about/platforms.jsp#browsers. The blocking issue has some configuration hints you may find useful.
In my opinion Internet Explorer was ALWAYS the least reliable tool both from the point of view of rendering compatibility, programmability and even the automation problems accross different versions. And although it had improved over the years Internet Explorer is still better to be avoided (from programmer's point of view). Today it is luckily not the only tool available.
So if you just need to get the work done, there are other browsers or browser-like tools that you can use.
If you MUST use IE then you should get your answer at the Internet Explorer Dev Center → Community → Developer forums
EDIT (after comments)
By the symptoms in your question it looks like the browser object is busy because of some dialog box (perhaps a security prompt) is being show to the user. Some links from Google that may help:
required IE configuration from the selenium browser automation engine - https://code.google.com/p/selenium/wiki/InternetExplorerDriver
how to disable Internet Explorer Enhanced Security Configuration - http://4sysops.com/archives/four-ways-to-disable-internet-explorer-enhanced-security-configuration-ie-esc/
Internet Explorer Security Zones and Compatibility View - https://help.blackboard.com/en-us/Learn/9.1_SP_14/Administrator/030_Browser_Support/030_Browser_Support_IE_Issue
set of dialogs that can be manipulated by the iMacros Internet Explorer automation toolkit - http://wiki.imacros.net/Browser_Automation#Dialog_Manager
Rewriting ~1000 lines of code to use another automation interface (or browser) and asking for help at the Microsoft's Internet Explorer Dev Center are IMO still valid options
Based on your following statement
I see same INPUT fields from MyBrowser.Document property!
it would seem that the page hasn't fully loaded. Perhaps it is loading data via AJAX and clicking the submit button shows the exact same page (which would explain why you were seeing the same INPUT fields) while waiting for a response from the server.
An easy way to test this is to wait for a longer period of time (e.g. 30 seconds) and ignoring the value of the browser ReadyState. However a better way would be looping until you find a element on the successful page that isn't on the first page, with a possible timeout of maybe 30 seconds.
I've used Selenium to do some automation and ran into similar problems and had to resort to using Implicit Waits but I'm not sure if VBA as such a feature (as I don't know VBA)

Login popup box not working in Firefox but is OK in Chrome

I have read the advice on posting a question that should be as precise as possible and used the advanced search facility so I hope my question has not been covered previously.
NOTE: I am not a programmer and can only just about find my way around code (in my site`s cpanel).
My site`s login popup box does not work in Firefox - although it did so for 3 years prior, up until a few weeks ago, so maybe there is an issue with a recent FF update). It does however work OK in Chrome.
Hovering over the login/register text shows the alt tag "Click to show popup login form" but nothing happens when clicked.
Can you provide a URL for others to see what you're referring to?
Firefox was just updated to version 18 I believe. I would try and downgrade to 17 just to confirm that it's an issue with FF. If it is I'd open an issue with mozilla (https://bugzilla.mozilla.org/). Also search there for your issue.

Enabling like button comment field for secure browsing users

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?