I have some tests created using Selenium WebDriver. When I run them using IE without proxy - it works awesome, but when I am trying to turn on the Proxy (Automatically detect settings) Selenium can't identify objects. I am getting error message: "Unable to find element "
Does anyone else meet the same situation?
The problem was at "Automatically detect settings" feature which has socks configuration parameters. Somehow it was blocking some of selenium interactions channel with browser.
Related
Visual Studio c#, selenium code.
Using Selenium Web-driver chrome driver and trying to open Salesforce Lightning page.
When I go to Activities screen getting "login.microsoftonline.com refused to connect." error.
Checked the developers tools and see the message X-Frame set to Deny.
Switched to Salesforce Classic and I don't see the issue.
When I try to open Salesforce Lightning with my local chrome browser instance everything works fine. The only issue is with Web-drive Chrome instance.
Can any one help me how can I make X-Frame set to Allow.
I have a Selenium script that controls a Tor browser. However, I'm unable to use the functionality 'New Tor Circuit for this site' even by sending the Ctrl+Shift+L combination to the browser.
Can someone explain how I can achieve this?
For reference, I'm using C# with the OpenQA Selenium package
The "new circuit" is a Tor Browser behaviour, you can't "launch" it with Selenium, Selenium just acts on the viewport.
But you can anyway launch a terminal command programmatically.
Take a look here
or there: link
I want to change the proxy port of my firefox driver while it is runing.
It is not important If i use the proxy settings from firefox itself or a 3rd party plugin like Omega switchy.
the main problem is
I can NOT open and close the browser with new arguments
firefox webdirver can not interact with about:preferences or about:config. otherwise I could change it by navigating to those pages
I if I set a system proxy and set firefox to use the system proxy and change the systemproxy by my application every program starts to use it
A similar question has been asked here but not for c#
Dynamically changing proxy in Firefox with Selenium webdriver
Is there any way to resolve this problem?
thanks in advance for any help
I have been using WatiN for some browser automation and website testing. Recently I received a request to automate some task that needs to check a partner website for existence of some SKU (since they don't have a proper API) and confirm transaction.
I tried using WatiN, but since this runs on a server and on-demand, the server desktop is naturally locked at most times and the IE window does not open and the process is never run.
I am looking for an alternative to WatiN, which is preferably a .net library (not a must, but just makes things easier), does not require a logged in user and being free and open source is always nice.
Anyone have experience with this type of automation?
You can use the Selenium WebDriver coupled with PhantomJS.
Selenium is similar in many ways to WaitN but it supports more browsers. PhantomJS is a headless browser and wrapped in a portable executable you can run from your web server.
Once you've added the NuGet packages, you will be able to instantiate a PhantomJS web driver and control a site without having to launch a full-fledged browser.
var driver = OpenQA.Selenium.PhantomJS.PhantomJSDriver();
We use this on build servers since the build agents are not logged in and won't be able to launch a normal browser process.
If you just need to check some HTML, you can use WebClient to make a request to the site, return the content response as a string and parse it.
We are developing some functional tests using Selenium 2 framework on a FireFox 10 environment and we are in trouble with this special functionality:
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
We are trying to setup the implicitly wait time to avoid sleep statements into our page objects. We we run the tests local or using a remote web driver everything works flawlessly, but when executing inside the TeamCity 7.0.4 server we got this unexpected modal:
SetUp method failed. SetUp : System.InvalidOperationException : Modal dialog present (UnexpectedAlertOpen)
at ... [Stack trace] ...
Unfortunately we don't have access to see what modal is really showing up. If we turn back using sleep timers in place of the driver configuration, everything works.
Obs: We are sure that the TeamCity environment is setup just like in our local machines. Including the FireFox version.
Any ideas?
Thank you!
Start TeamCity Agent as normal process under your account (and not windows service) and wait what kind of dialog you will see.