I want to list some of the challenges that I have faced and the solutions that I have adopted.
***1.
Since the upgrade dealing with Selenium-3, GeckoDriver and Marionette have been a big pain. I just reverted to the previously working version:
- Selenium-2.53.1 - downloaded from here.
- Firefox 46 - downloaded from here.
- IEDriverServer - downloaded from the same folder as that of Selenium Standalone.
- For other browsers, I downloaded dependencies for Selenium 2.53.1 from this download page.
***2.
While launching Firefox, 2 browsers (one blank and one with Skype) would open up and my tests would fail. To solve this problem, I created a new profile and launched Firefox with that profile. I created profile as explained in detail on the mozilla support site here. I also made sure to select "Never check for updates (not recommended: security risk)" under Options --> Advanced --> Update
This is how you launch Firefox with specific profile
1 2 3 4 5 6 | ProfilesIni profile = new ProfilesIni(); FirefoxProfile myprofile = profile.getProfile("CreatedProfile"); WebDriver driver = new FirefoxDriver("String profileName"); |
***3.
***4.
Hi Jigyasa,
ReplyDeleteCame across your page and found this very knowledgable. Would love to sync up and talk about your utilization with Salesforce at Tapestry.