# I want to integrate the java selenium code in user defined java plugin

**URL:** <https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137>\
**Category:** Process Studio\
**Tags:** rpa\
**Created:** [April 12, 2023, 10:14am UTC](https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137 "2023-04-12T10:14:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gobikrishnan](https://avatars.discourse-cdn.com/v4/letter/g/43a26b/32.png) [@Gobikrishnan](https://community.automationedge.com/u/Gobikrishnan)\
**Post date:** [April 12, 2023, 10:14am UTC](https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137/1 "2023-04-12T10:14:30Z")

</div>

previously it was done by my senior can anyone pls Refer my snap and explain how its working. ?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/7/7e9d288e87ecc5486edf123d1de7d08e401e201c.png)

---

<div class="post-metadata">

**Author:** ![nidhi.saraiya](https://avatars.discourse-cdn.com/v4/letter/n/ea666f/32.png) [@nidhi.saraiya](https://community.automationedge.com/u/nidhi.saraiya)\
**Post date:** [April 19, 2023, 10:34am UTC](https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137/2 "2023-04-19T10:34:17Z")

</div>

[@AE\_Knights](https://community.automationedge.com/groups/ae_knights) Please assist Gobikrishnan to find a solution to above query.

---

<div class="post-metadata">

**Author:** ![rohini.deshpande](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@rohini.deshpande](https://community.automationedge.com/u/rohini.deshpande)\
**Post date:** [June 27, 2023, 6:55am UTC](https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137/3 "2023-06-27T06:55:48Z")

</div>

Hi Krishnan,

In this plugin, processRow is the main method from where execution will begin & this will be populated from Code Snippits-\>Common Use–\>Main under Classes and Code fragements:

In this method some code gets auto populated, code above WebDriver driver line. This code will get the row from previous step, will check if nothing is there then return false, if not then continue with further code.

Line WebDriver driver = …, this line will get the current browser instance which is launched using Start Browser and after that you can write Java+Selenium code to perform different operations.

Hope this will clear your understanding about the working of the code in given snap.

---

<div class="post-metadata">

**Author:** ![mahesh.sadekar](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mahesh.sadekar](https://community.automationedge.com/u/mahesh.sadekar)\
**Post date:** [June 27, 2023, 7:45am UTC](https://community.automationedge.com/t/i-want-to-integrate-the-java-selenium-code-in-user-defined-java-plugin/9137/4 "2023-06-27T07:45:23Z")

</div>

Hi Gobikrishnan,

Any specific reason to use User Defined Java Class? you can do this through **Web Switch Window** plugin also.

Regards,  
Mahesh
