How to add my own/custom methods to Selenium WebDriver jar?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to add my own/custom methods to Selenium WebDriver jar?

HemaSundar Penugonda
Hi Team,

Our Project Environment:
Selenium WebDriver, Selenium Grid
Prog. lang. : JAVA, TestNG

In our current project, we implemented Selenium Grid & WebDriver using JAVA and everything working fine. 

In most of the test cases we need to save the screen shot of a particular webElement from browser window at run time and perform pixel to pixel comparison with the expected image (Expected image is present on Selenium hub system). Image comparison is Java Code.

We have implemented all this on Selenium grid.

As per the selenium documentation says, selenium hub executes only selenium commands on node system, remaining java code execution is using hub resources (CPU) only. Because of this all the image comparison execution is on Hub machine only.

So now our test case execution is finally dependent on hub resources and all the benefit of earlier steps executed on selenium node is gone. We want to execute image comparison on selenium node as well.

Our solution is: Using Selenium grid to execute the image comparison method on node system (not on Hub). 

To achieve this, i have tried the following:
a) imported the selenium project from git
b) tried to add the my custom method in:
  • com.thoughtworks.selenium.webdriven.commands package
  • com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor class
  • org.openqa.selenium.htmlunit.HtmlUnitDriver class
  • org.openqa.selenium.remote.RemoteWebDriver class
  • org.openqa.selenium.support.events.EventFiringWebDriver class
  • org.openqa.selenium.WebDriver interface
c) generated the build using "go clean release" command
d) tried using the jar files created, but i couldn't see the custom method i added.

Please explain how can i extend selenium webdriver or how to add my own method to selenium jar file? 
or please let me know if there is some solution to my current problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add my own/custom methods to Selenium WebDriver jar?

⇜Krishnan Mahadevan⇝
You are doing this wrong.
You can very well get this done with the current Grid infrastructure itself. 

All you need is to be able to build a custom servlet at the node end and inject it into the node. When you are ready for performing image comparison at the node, you would directly trigger an invocation to the servlet at the node which would do what you need and respond back with a response which your test can leverage upon.

The overall idea of how to get this done can be found in my blog post : 

We did something similar when we built SeLion [ http://selion.io

Take a look at the servlets here : 

Relevant configuration here : 

Some documentation : 


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, May 29, 2015 at 5:13 PM, HemaSundar Penugonda <[hidden email]> wrote:
Hi Team,

Our Project Environment:
Selenium WebDriver, Selenium Grid
Prog. lang. : JAVA, TestNG

In our current project, we implemented Selenium Grid & WebDriver using JAVA and everything working fine. 

In most of the test cases we need to save the screen shot of a particular webElement from browser window at run time and perform pixel to pixel comparison with the expected image (Expected image is present on Selenium hub system). Image comparison is Java Code.

We have implemented all this on Selenium grid.

As per the selenium documentation says, selenium hub executes only selenium commands on node system, remaining java code execution is using hub resources (CPU) only. Because of this all the image comparison execution is on Hub machine only.

So now our test case execution is finally dependent on hub resources and all the benefit of earlier steps executed on selenium node is gone. We want to execute image comparison on selenium node as well.

Our solution is: Using Selenium grid to execute the image comparison method on node system (not on Hub). 

To achieve this, i have tried the following:
a) imported the selenium project from git
b) tried to add the my custom method in:
  • com.thoughtworks.selenium.webdriven.commands package
  • com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor class
  • org.openqa.selenium.htmlunit.HtmlUnitDriver class
  • org.openqa.selenium.remote.RemoteWebDriver class
  • org.openqa.selenium.support.events.EventFiringWebDriver class
  • org.openqa.selenium.WebDriver interface
c) generated the build using "go clean release" command
d) tried using the jar files created, but i couldn't see the custom method i added.

Please explain how can i extend selenium webdriver or how to add my own method to selenium jar file? 
or please let me know if there is some solution to my current problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnO%2B1H8nVNzsObwR8b%3DRZuKAEagQOva16hxOzEiZJze1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add my own/custom methods to Selenium WebDriver jar?

David
In reply to this post by HemaSundar Penugonda
FYI, if I'm not mistaken, the reality is that the non-Selenium Java code executes on the code execution machine, which may or may not be the Selenium grid hub. It is if you happen to execute the test code locally on the hub machine (as localhost). But if you actually connect to the hub remotely over IP/hostname, then the Java/test code including the image comparison actually executes on the test client not the hub.

On Sunday, May 31, 2015 at 7:29:02 PM UTC-7, HemaSundar Penugonda wrote:
Hi Team,

Our Project Environment:
Selenium WebDriver, Selenium Grid
Prog. lang. : JAVA, TestNG

In our current project, we implemented Selenium Grid & WebDriver using JAVA and everything working fine. 

In most of the test cases we need to save the screen shot of a particular webElement from browser window at run time and perform pixel to pixel comparison with the expected image (Expected image is present on Selenium hub system). Image comparison is Java Code.

We have implemented all this on Selenium grid.

As per the selenium documentation says, selenium hub executes only selenium commands on node system, remaining java code execution is using hub resources (CPU) only. Because of this all the image comparison execution is on Hub machine only.

So now our test case execution is finally dependent on hub resources and all the benefit of earlier steps executed on selenium node is gone. We want to execute image comparison on selenium node as well.

Our solution is: Using Selenium grid to execute the image comparison method on node system (not on Hub). 

To achieve this, i have tried the following:
a) imported the selenium project from git
b) tried to add the my custom method in:
  • com.thoughtworks.selenium.webdriven.commands package
  • com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor class
  • org.openqa.selenium.htmlunit.HtmlUnitDriver class
  • org.openqa.selenium.remote.RemoteWebDriver class
  • org.openqa.selenium.support.events.EventFiringWebDriver class
  • org.openqa.selenium.WebDriver interface
c) generated the build using "go clean release" command
d) tried using the jar files created, but i couldn't see the custom method i added.

Please explain how can i extend selenium webdriver or how to add my own method to selenium jar file? 
or please let me know if there is some solution to my current problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/59425f1b-65d6-4745-b86b-88dfb934b02f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add my own/custom methods to Selenium WebDriver jar?

mayank nishesh
In reply to this post by ⇜Krishnan Mahadevan⇝
Hi Krishnan,

I am facing challenges in attaching the custom servelet to the selenium grid.Could you guide me step by step process for this or can refer to me any link.
Also whether the servelet which we export as jar should be a runnable jar or normal jar?

On Monday, 1 June 2015 08:30:03 UTC+5:30, Krishnan wrote:
You are doing this wrong.
You can very well get this done with the current Grid infrastructure itself. 

All you need is to be able to build a custom servlet at the node end and inject it into the node. When you are ready for performing image comparison at the node, you would directly trigger an invocation to the servlet at the node which would do what you need and respond back with a response which your test can leverage upon.

The overall idea of how to get this done can be found in my blog post : 
<a href="https://rationaleemotions.wordpress.com/2013/01/28/building-a-self-maintaining-grid-environment/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F01%2F28%2Fbuilding-a-self-maintaining-grid-environment%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8_QDmF42mMEHi7uCZ15HXJMbNfw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frationaleemotions.wordpress.com%2F2013%2F01%2F28%2Fbuilding-a-self-maintaining-grid-environment%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8_QDmF42mMEHi7uCZ15HXJMbNfw&#39;;return true;">https://rationaleemotions.wordpress.com/2013/01/28/building-a-self-maintaining-grid-environment/

We did something similar when we built SeLion [ <a href="http://selion.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselion.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvnXruvo1sPwT7hjMu3m5jeFLG4A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselion.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvnXruvo1sPwT7hjMu3m5jeFLG4A&#39;;return true;">http://selion.io ] 

Take a look at the servlets here : 
<a href="https://github.com/paypal/SeLion/tree/develop/server/src/main/java/com/paypal/selion/node/servlets" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Ftree%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpaypal%2Fselion%2Fnode%2Fservlets\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEgMfIJzBC-O2fHzlSz5oMfuHVAGQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Ftree%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpaypal%2Fselion%2Fnode%2Fservlets\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEgMfIJzBC-O2fHzlSz5oMfuHVAGQ&#39;;return true;">https://github.com/paypal/SeLion/tree/develop/server/src/main/java/com/paypal/selion/node/servlets

Relevant configuration here : 
<a href="https://github.com/paypal/SeLion/blob/develop/server/src/main/resources/config/unix/nodeConfig.json" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Fblob%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fresources%2Fconfig%2Funix%2FnodeConfig.json\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWt1U-YfqmI_adUtywx6FBzkGihA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Fblob%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fresources%2Fconfig%2Funix%2FnodeConfig.json\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWt1U-YfqmI_adUtywx6FBzkGihA&#39;;return true;">https://github.com/paypal/SeLion/blob/develop/server/src/main/resources/config/unix/nodeConfig.json
<a href="https://github.com/paypal/SeLion/blob/develop/server/src/main/resources/config/windows/nodeConfig.json" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Fblob%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fresources%2Fconfig%2Fwindows%2FnodeConfig.json\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9b8vrheXjwWT2hVcp9twjYludoA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpaypal%2FSeLion%2Fblob%2Fdevelop%2Fserver%2Fsrc%2Fmain%2Fresources%2Fconfig%2Fwindows%2FnodeConfig.json\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9b8vrheXjwWT2hVcp9twjYludoA&#39;;return true;">https://github.com/paypal/SeLion/blob/develop/server/src/main/resources/config/windows/nodeConfig.json 

Some documentation : 
<a href="http://paypal.github.io/SeLion/html/documentation.html#selion-grid" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fpaypal.github.io%2FSeLion%2Fhtml%2Fdocumentation.html%23selion-grid\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEk_yt3X6JrN3TJonSvIeaJbWo42w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fpaypal.github.io%2FSeLion%2Fhtml%2Fdocumentation.html%23selion-grid\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEk_yt3X6JrN3TJonSvIeaJbWo42w&#39;;return true;">http://paypal.github.io/SeLion/html/documentation.html#selion-grid


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Fri, May 29, 2015 at 5:13 PM, HemaSundar Penugonda <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ajOXUCixQtkJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">p.hema...@...> wrote:
Hi Team,

Our Project Environment:
Selenium WebDriver, Selenium Grid
Prog. lang. : JAVA, TestNG

In our current project, we implemented Selenium Grid & WebDriver using JAVA and everything working fine. 

In most of the test cases we need to save the screen shot of a particular webElement from browser window at run time and perform pixel to pixel comparison with the expected image (Expected image is present on Selenium hub system). Image comparison is Java Code.

We have implemented all this on Selenium grid.

As per the selenium documentation says, selenium hub executes only selenium commands on node system, remaining java code execution is using hub resources (CPU) only. Because of this all the image comparison execution is on Hub machine only.

So now our test case execution is finally dependent on hub resources and all the benefit of earlier steps executed on selenium node is gone. We want to execute image comparison on selenium node as well.

Our solution is: Using Selenium grid to execute the image comparison method on node system (not on Hub). 

To achieve this, i have tried the following:
a) imported the selenium project from git
b) tried to add the my custom method in:
  • com.thoughtworks.selenium.webdriven.commands package
  • com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor class
  • org.openqa.selenium.htmlunit.HtmlUnitDriver class
  • org.openqa.selenium.remote.RemoteWebDriver class
  • org.openqa.selenium.support.events.EventFiringWebDriver class
  • org.openqa.selenium.WebDriver interface
c) generated the build using "go clean release" command
d) tried using the jar files created, but i couldn't see the custom method i added.

Please explain how can i extend selenium webdriver or how to add my own method to selenium jar file? 
or please let me know if there is some solution to my current problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ajOXUCixQtkJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ajOXUCixQtkJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3d3b1d73-bed0-4906-8277-4849947cc209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add my own/custom methods to Selenium WebDriver jar?

⇜Krishnan Mahadevan⇝

Have you referred to the official selenium documentation here : http://www.seleniumhq.org/docs/07_selenium_grid.jsp#customizing-the-grid

 

Once you have built your servlet, you can wire it in using two ways:

 

  1. Build an uber jar wherein you have selenium and its dependencies all bundled into one single jar. You can refer here if you are using Maven and refer here if you are using gradle.
  2. Build a regular jar, drop it in your classpath and then use the java -cp command to spawn the hub.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <[hidden email]> on behalf of mayank nishesh <[hidden email]>
Reply-To: <[hidden email]>
Date: Tuesday, June 6, 2017 at 5:23 PM
To: Selenium Users <[hidden email]>
Subject: Re: [selenium-users] How to add my own/custom methods to Selenium WebDriver jar?

 

Hi Krishnan,

 

I am facing challenges in attaching the custom servelet to the selenium grid.Could you guide me step by step process for this or can refer to me any link.

Also whether the servelet which we export as jar should be a runnable jar or normal jar?

On Monday, 1 June 2015 08:30:03 UTC+5:30, Krishnan wrote:

You are doing this wrong.

You can very well get this done with the current Grid infrastructure itself. 

 

All you need is to be able to build a custom servlet at the node end and inject it into the node. When you are ready for performing image comparison at the node, you would directly trigger an invocation to the servlet at the node which would do what you need and respond back with a response which your test can leverage upon.

 

The overall idea of how to get this done can be found in my blog post : 

 

We did something similar when we built SeLion [ http://selion.io

 

Take a look at the servlets here : 

 

Relevant configuration here : 

 

Some documentation : 

 


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

On Fri, May 29, 2015 at 5:13 PM, HemaSundar Penugonda <<a href="javascript:" target="_blank">p.hema...@...> wrote:

Hi Team,

 

Our Project Environment:

Selenium WebDriver, Selenium Grid

Prog. lang. : JAVA, TestNG

 

In our current project, we implemented Selenium Grid & WebDriver using JAVA and everything working fine. 

 

In most of the test cases we need to save the screen shot of a particular webElement from browser window at run time and perform pixel to pixel comparison with the expected image (Expected image is present on Selenium hub system). Image comparison is Java Code.

 

We have implemented all this on Selenium grid.

 

As per the selenium documentation says, selenium hub executes only selenium commands on node system, remaining java code execution is using hub resources (CPU) only. Because of this all the image comparison execution is on Hub machine only.

 

So now our test case execution is finally dependent on hub resources and all the benefit of earlier steps executed on selenium node is gone. We want to execute image comparison on selenium node as well.

 

Our solution is: Using Selenium grid to execute the image comparison method on node system (not on Hub). 

 

To achieve this, i have tried the following:

a) imported the selenium project from git

b) tried to add the my custom method in:

  • com.thoughtworks.selenium.webdriven.commands package
  • com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor class
  • org.openqa.selenium.htmlunit.HtmlUnitDriver class
  • org.openqa.selenium.remote.RemoteWebDriver class
  • org.openqa.selenium.support.events.EventFiringWebDriver class
  • org.openqa.selenium.WebDriver interface

c) generated the build using "go clean release" command

d) tried using the jar files created, but i couldn't see the custom method i added.

 

Please explain how can i extend selenium webdriver or how to add my own method to selenium jar file? 

or please let me know if there is some solution to my current problem.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">selenium-user...@....
To post to this group, send email to <a href="javascript:" target="_blank">seleniu...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a97c0f2a-5065-49ce-86b1-77f5777db6f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3d3b1d73-bed0-4906-8277-4849947cc209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7D2E3192-B7E8-4CB5-A762-0C21D42689D2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...