Suppose I login to evernote.com using Selenium RC. Is it possible for me to change the base_url to google.com while staying on the same page. I do not want to open a new browser for google.com. When I create another instance of Default Selenium for google.com it shows up in a new browser. I would like to find if there is anyway to change the base_url while on the same page.
A portion of my code:
//Declare HttpCommandProcessor and pass selenium object
HttpCommandProcessor proc = new
HttpCommandProcessor("localhost",4444,"*chrome","http://evernote.com/");
DefaultSelenium sel = new DefaultSelenium(proc);
@Test (dataProvider = "DP1")
public void evernoteSharing(String user1,
String password1,
String email1,
String user2,
String password2,
String email2
){
try
{
//Call login module and pass Selenium object, username and password as parameters
loginObj.login(sel, user1, password1);
//Click on the Try new evernote button in the pop-up window
sel.click(popupLogin);
//sel.waitForPageToLoad("30000");
Assert.assertEquals(sel.getTitle(), homeTitle);
sel.click(lnkoldEvernote);
sel.waitForPageToLoad(stimeout);
sel.open("www.google.com");
sel.waitForPageToLoad(stimeout);
//Call create notebook module and pass Selenium object as a variable
createNb.createNotebook(sel);
//Call sharing module and pass selenium object and second user's emailid as parameter
shareObj.shareNoteIndividual(sel, email2);