Forum Discussion

twhitehouse's avatar
twhitehouse
Contributor
10 years ago

Sign into gmail after dynamic reload of everything previously mapped in Name Mapping

My script will successfully sign into Gmail, click on an email, and click on the link in that email if and only if I do not sign out of Gmail or close the browser.  As soon as the user is no longer s...
  • Colin_McCrae's avatar
    10 years ago

    I did get gmail through a browser working after restarts and suchlike.

     

    But I do remember the map was a horror story. I'm sure it was about 30 levels deep to actually get to the body of an e-mail. I'm pretty sure I had to go all the way through the map, VERY carefully, and find a couple of identification properties that seemed to indicate session ID's and wildcard them.

     

    This was quite a few versions of Chrome ago, so my map may not still work. Also, that script and the VM which ran it is all zipped away and archived so I can't easily check it for you I'm afraid. (I'm actually on holiday today ... I just remoted into my work machine to check something on e-mail there ...)

     

    But plough through the object map. Looks for long random strings in properties. They tend to be session related and/or generated on the fly.

     

    It may also be worth enabling "find on any level". Or using a top level container and find (or series of finds), rather than a name map.

  • HKosova's avatar
    10 years ago

    This is not an answer to your question, but rather a suggestion. If you aren't actually testing the Gmail interface, consider accessing Gmail and email contents programmatically. There're third-party email client libraries, such as .NET MailKit, that you can use via CLR Bridge/dotNET. Imho this would be easier than dealing with the UI map.