tag:blogger.com,1999:blog-6898534150006909939.post9102599196219448977..comments2023-08-10T18:13:42.401+10:00Comments on QA Blog: Firefox Proxy configuration using Selenium Webdriver and CapybaraUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6898534150006909939.post-55287039429805723272013-08-25T10:04:37.900+10:002013-08-25T10:04:37.900+10:00Hi BA,
profile = Selenium::WebDriver::IE::Profile...Hi BA,<br /><br />profile = Selenium::WebDriver::IE::Profile.new<br /><br />The above statement does not work with Internet explorer so it says and suggestion?<br />uninitialized constant Selenium::WebDriver::IE (NameError)<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6898534150006909939.post-28357194864659997632013-07-19T16:51:33.687+10:002013-07-19T16:51:33.687+10:00Hi I tried this way and it helped me set manual ne...Hi I tried this way and it helped me set manual network setting in fire fox .<br /> <br />address : "x.x.x.x:8080" and Import respective packages<br /> <br />enter code here<br /> <br /> <br /> <br />public class SeleniumUtil <br /> <br />WebDriver driver;<br /> <br />SeleniumUtil()<br /> <br />String PROXY = "192.1.1.1:8080";<br /> <br />org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();<br /> ProxysetSslProxy=proxy.setHttpProxy(PROXY).setFtpProxy(PROXY).setSslProxy(PROXY);<br /> <br />DesiredCapabilities cap = new DesiredCapabilities();<br />cap.setCapability(CapabilityType.PROXY, proxy);<br />driver = new FirefoxDriver(cap);<br /> <br />@BeforeSuite(alwaysRun = true)<br />public void setupBeforeSuite() <br /> Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6898534150006909939.post-21362103612924865902012-12-27T15:16:49.865+11:002012-12-27T15:16:49.865+11:00If you get this error
uninitialized constant Sele...If you get this error<br /> uninitialized constant Selenium (NameError)<br /> ./features/support/env.rb:19:in `block in '<br /><br />Try adding require "selenium-webdriver" on the env.rb fileBAhttps://www.blogger.com/profile/14228063565985062632noreply@blogger.comtag:blogger.com,1999:blog-6898534150006909939.post-58067050490175828072010-11-04T08:42:37.082+11:002010-11-04T08:42:37.082+11:00As of Capybara 0.4.0, you would need to use the fo...As of Capybara 0.4.0, you would need to use the following code<br /><br />Capybara.register_driver :selenium do |app|<br /> profile = Selenium::WebDriver::Firefox::Profile.new<br /> profile["network.proxy.type"] = 1<br /> profile["network.proxy.http"] = "proxy setting"<br /> profile["network.proxy.http_port"] = 8080<br /> Capybara::Driver::Selenium.new(app, :browser => :firefox, :profile => profile)<br />endBAhttps://www.blogger.com/profile/14228063565985062632noreply@blogger.com