Solved

Web Automation - session id from child bot question

  • 9 February 2023
  • 9 replies
  • 102 views

Badge +2

Hey gang,

 

I’m looking for some advise on Web Automation..

I’ve build a child bot that will be used as Reusable Component. It’s main purpose is to start new session in Chrome navigate to specific URL and login using stored credentials. Upon successful login I would use “Get Current Session” component to grab current session id into a string and output it in main flow bot. 

In the main flow I want to continue and navigate using the same session id/window to a different URL, but I’m not getting any luck nor any errors. What am I possibly missing here?

 

 

icon

Best answer by Sumit.K7 10 February 2023, 12:37

View original

9 replies

Userlevel 7
Badge +13

Hi @jayqb ,

 

Unfortunately, we can't create a session variable specifically for the Web Automation. Can you try using the Browser Automation package instead? This package is also working the same way as the Web Automation. This will auto determine browser version and use correct driver version, will work for upcoming future versions too- providing driver path is optional. Also, it will allow shared sessions through shared session variables/ global sessions. It can also perform tasks like handle alerts, navigate forward, back, refresh, new tab, maximize, full screen, minimize etc.

 

 

Badge +2


Thanks for your response @Padmakumar 
Is this the package that you mentioned or do I need to additionally install it?

Userlevel 7
Badge +13


Thanks for your response @Padmakumar 
Is this the package that you mentioned or do I need to additionally install it?

 

No. It’s a different package.

 

 

Badge +2

Looks like I don’t have this package installed in my A360. 

How can I add this? 

Userlevel 7
Badge +13

Looks like I don’t have this package installed in my A360. 

How can I add this? 

 

Which A360 build you are having?

Badge +2

Automation 360 build 16667

Userlevel 2
Badge +5

@ja 1672 Import this zip file in your control room. This will add Browser Automation package.

 

For session to be shared, ensure package version is same among bots.

Community edition does not set/allow latest package version as default for imported packages.

Badge +2

Awesome, thanks for all the info and the file.

I was able to import the package successfully and will give it a go!

Badge +2

I just wanted to add this now works exactly as intended. 🤗

 

Thank you once again!

Reply