![]() This class has methods like addExtension()- which is used to install add-on in new instance of Chrome, and along with this we have setBinary() method, which is used to sets the path of Chrome executable, So lets’ begin, In Chrome we need to create instance of ChromeOption class. So now task is complete for Firefox but still we need to do the same for Chrome.īut don’t you think, we might be following the same process here in chrome as well in firefox we were talking about firefoxprofile but here we would be taking chromeoption. ![]() WebDriver driver = new WebDriver(firefoxprofile) Now pass this profile in to new instance of FirefoxDriverĪs a whole this code will look like this in Eclipse to install add-on in Firefox using WebDriverįirefoxProfile firefoxprofile = new FirefoxProfile() xpi file") Ĥ- Now time has came to call the addExtension() of FirefoxProfile class.This method will install add-on in new profile created with new Instance of Firefox. ![]() How to Run Selenium Scripts In Tor Browser?įile addonpath = new File("path of.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |