Jump to content



Photo

Need Creative Solution To Obscure Data As Soon As A Page Loads.


  • Please log in to reply
3 replies to this topic

#1 dmbfan

dmbfan

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 86 posts
  • LocationPhoenix AZ
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 09 January 2019 - 09:52 AM

I am working on a project where a webpage loads that contains the name and other protected information of medical patients.

 

I am trying to obscure some of the personal information so that it is not visible to the end user.

 

What I have tried so far is adding a "wait for browser event" and selected "DOM Ready" then I use the change attribute command to change the innertext of all the sensitive elements to the word "Obscured"

 

The process works, however there is a brief period of time  where the page loads and the patient name is still visible before the attribute is changed. I have also tried waiting for the specific element, but that also displays the sensitive information briefly.

 

Is there a clever way to hide the entire browser view from the user while the bot is changing the attibutes?  and/or is the a better/quicker way to change attribute values so that the data does not appear?

 

 

 

 



#2 bestmacros

bestmacros

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 411 posts
  • LocationIsrael
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 09 January 2019 - 10:37 AM

you can hide browser data by using :
 

set visibility("Invisible")


http://wiki.ubotstud.../Set_Visibility


bestmacros.jpg


#3 dmbfan

dmbfan

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 86 posts
  • LocationPhoenix AZ
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 09 January 2019 - 11:07 AM

Thank you!  Changing the visibility does the trick!  I had no idea that command even existed!



#4 matimagallanes

matimagallanes

    Member

  • Fellow UBotter
  • PipPip
  • 27 posts
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 21 January 2019 - 05:38 PM

on load("Bot Loaded") {
    change attribute(<id="x">,"style","display: none;")
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users