Thank you for reaching us out.
You could execute a Selenium test within a Test Studio test and here is how
you could do that.
On the other hand it seems to me you would like to implement only parts of a Selenium test which could not be exactly accomplished. If you would like to use coded solutions within Test Studio tests you could use the Test Studio Testing Framework - please find here how to automate common browser actions
If the above does not make sense to you please share some further details on the scenario and use case you currently have so that we are on the same page in the communication.
Thanks in advance for your understanding!