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

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

@AE_Knights Please assist Gobikrishnan to find a solution to above query.

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.

Hi Gobikrishnan,

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

Regards,
Mahesh

1 Like