Can you please help elaborate your use case ? What exactly are you trying to do ?
Your cloning mechanism wont work, because you have merely invoked a super.clone() (here your super is basically the Cloneable interface and it doesn’t have any implementation).
You would need to write code such that the clone() implementation creates another WebDriver instance and returns it optionally doing the following :
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/
--
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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Not sure what do your really want? WebDriver instance is just a Java object but the object itself bind a Web Browser instance. The driver instance is used to manipulate the browser instance for various test actions. Never try clone one because you are not able to clone one browser instance. If you want to two webdriver instances, you just need to create two. If you want to one browser open two tabs for different website. it is possible.
--david
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/D10D3CA6-10AF-46C7-ABEF-DB8890E4D8BD%40gmail.com.
Why not just work with two WebDriver instances ? Wouldn't that be a lot more simpler and easier to manage rather than resorting to clone ?
Your test case would just create two WebDriver instances wherein, in the first instance you would have opened your web application #1 and in the second instance you would have opened the second web application.
You don't need clone here. You just need your test to create and work with two WebDriver instances rather than one (which is what most tests would usually work with ).
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/D10D3CA6-10AF-46C7-ABEF-DB8890E4D8BD%40gmail.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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZXohDu3fn2fZ%2B6SUpq54NKU7qcd7wZqUYgrW6exvYMK%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Why not just work with two WebDriver instances ? Wouldn't that be a lot more simpler and easier to manage rather than resorting to clone ?
Your test case would just create two WebDriver instances wherein, in the first instance you would have opened your web application #1 and in the second instance you would have opened the second web application.
You don't need clone here. You just need your test to create and work with two WebDriver instances rather than one (which is what most tests would usually work with ).
On Sat, May 27, 2017, 21:34 Poovaraj Thangamariappan <poovar...@gmail.com> wrote:
Hi Krishnan Mahadevan,Thanks for your reply. I have to validate 2 application simultaneously using single driver.Scenarios :-
- Login into application and Updated in Email ID in first application
- I have to open second application and verify email id is updated or not
- Again, I have to move first application and updated in account number
- verify account number in second application
* I cannot use SwitchToWindow and SwitchToFrame option in this scenariosHow to handle this scenario without using 2 webdriver instance ?Regards,Poovaraj
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/D10D3CA6-10AF-46C7-ABEF-DB8890E4D8BD%40gmail.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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZXohDu3fn2fZ%2B6SUpq54NKU7qcd7wZqUYgrW6exvYMK%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--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/
--
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmor%2BCH1AxGikVnhU9%3Dz6Ka0DFy0OU7Uhpbg12_k7hQqA%40mail.gmail.com.
Even then you can have one WebDriver managed by your framework and the other one managed by your test case no ? You can extend the concept of cloning but not in the literal sense but by having your test introspect the WebDriver instance provided by your framework, take a look at it's capabilities and then create a "similar" webdriver instance which your test can manage.
At the end, before your test runs to completion it can clean up the WebDriver instance it created.
The other option would be to inject a hyperlink in runtime using JavaScript via your webdriver. This hyper link when clicked would trigger a new window to be opened. From there on your test can merely switch to the other window and have it open up a new url ( your second web app ) and take it up from there.
It was working fine this scenario if i have created 2 web driver instance but Currently, the Framework is not supporting to create 2 webdriver instance simultaneously. so, I have cloned web driver instance.Is anyother way to achieve this scenario using single webdriver instance ?On Sat, May 27, 2017 at 9:38 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
Why not just work with two WebDriver instances ? Wouldn't that be a lot more simpler and easier to manage rather than resorting to clone ?
Your test case would just create two WebDriver instances wherein, in the first instance you would have opened your web application #1 and in the second instance you would have opened the second web application.
You don't need clone here. You just need your test to create and work with two WebDriver instances rather than one (which is what most tests would usually work with ).
On Sat, May 27, 2017, 21:34 Poovaraj Thangamariappan <poovar...@gmail.com> wrote:
Hi Krishnan Mahadevan,Thanks for your reply. I have to validate 2 application simultaneously using single driver.Scenarios :-
- Login into application and Updated in Email ID in first application
- I have to open second application and verify email id is updated or not
- Again, I have to move first application and updated in account number
- verify account number in second application
* I cannot use SwitchToWindow and SwitchToFrame option in this scenariosHow to handle this scenario without using 2 webdriver instance ?Regards,Poovaraj
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/D10D3CA6-10AF-46C7-ABEF-DB8890E4D8BD%40gmail.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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZXohDu3fn2fZ%2B6SUpq54NKU7qcd7wZqUYgrW6exvYMK%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----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/
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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmor%2BCH1AxGikVnhU9%3Dz6Ka0DFy0OU7Uhpbg12_k7hQqA%40mail.gmail.com.
--
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 selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZUf%2BRboQVWQ6b8sHCqk0Y%3DW8iKtKrJTZJUK4Lu9Ni0WHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZW2Kn7u5oFmdPdzRG5G1heF5m%2BeUtMSCB8OkkMZXiiZiw%40mail.gmail.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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/D10D3CA6-10AF-46C7-ABEF-DB8890E4D8BD%40gmail.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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZXohDu3fn2fZ%2B6SUpq54NKU7qcd7wZqUYgrW6exvYMK%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----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/
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmor%2BCH1AxGikVnhU9%3Dz6Ka0DFy0OU7Uhpbg12_k7hQqA%40mail.gmail.com.--
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAMu9-ZUf%2BRboQVWQ6b8sHCqk0Y%3DW8iKtKrJTZJUK4Lu9Ni0WHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--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/
--
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3Dq7s8PoEAXacJf4CRCcocb5fR0f7awP_RKv3itGBaBFw%40mail.gmail.com.