skype extention page automatically opens in new tab. How to create FF Profile?

瀏覽次數:33 次
跳到第一則未讀訊息

NDP

未讀,
2016年12月8日 上午10:25:142016/12/8
收件者:Selenium Users
Hi there,

Steps:
  1.  Run the FirefoxDriverDemo class i.e:

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class FirefoxDriverDemo {

public static void main(String[] args) {

WebDriver driver;
System.setProperty("webdriver.gecko.driver", "C:/Program Files/Selenium/geckodriver.exe");
driver  = new FirefoxDriver();
String baseURL = "http://www.google.co.uk";
driver.get(baseURL);
}

}

Expected result:
One Firefox tab opens in the a new browser and "www.google.co.uk" displays.

Actual result:
A new browser opens successfully HOWEVER 2 tabs open instead of 1:
One tab with blank address and 

Resolution:
I understand that I need to create a Firefox profile such as the one below, how do I create and use this profile please?

ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("CreatedProfile");
WebDriver driver = new FirefoxDriver(myprofile);

Thanks

NDP

未讀,
2016年12月8日 下午3:06:282016/12/8
收件者:Selenium Users
I found the solution. thanks anyway :-)

Ripon Al Wasim

未讀,
2016年12月8日 晚上11:43:582016/12/8
收件者:seleniu...@googlegroups.com
hi NDP,

What's the solution you have found?

Ripon

--
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/e3a9d50e-3260-4ec9-9a6d-d596f3c70ee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回覆所有人
回覆作者
轉寄
0 則新訊息