Can't open browser with Selenium after Firefox update

I use Selenium WebDriver on Ubuntu Desktop 16.04, and I can't open browser. I get the following error after Firefox update (before this, it all worked):Traceback (most recent call last): File "test.py", line 6, in <module> driver = webdriver.Firefox() File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 81, in __init__ self.binary, timeout) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__ self.binary.launch_browser(self...Read more

selenium - How can I run the same test on browserstack and local browsers?

I've set up NUnit tests that runs on BrowserStack (set up from this example https://github.com/browserstack/nunit-browserstack )Base class:namespace Bloc.TestProject{ public class BrowserStackNUnitTest { protected IWebDriver driver; protected string profile; protected string environment; private Local browserStackLocal; public BrowserStackNUnitTest(string profile, string environment) { this.profile = profile; this.environment = environment; } [SetUp] publ...Read more

selenium - Katalon studio Unable to set text (Root cause: Element is not currently interactable and may not be manipulated

Hi guys i am using katalon studio and whiling passing text via set text email to email input field i am getting this issue:Test Cases/Valid_Login FAILED because (of) Unable to set text 'usman@myfake.tk' of object 'Object Repository/Page_Webtalk Communicate Better/input_email' (Root cause: org.openqa.selenium.InvalidElementStateException: Element is not currently interactable and may not be manipulatedBuild info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'System info: host: 'USMAN', ip: '192.168.11.206', os.name: 'W...Read more

web scraping - cannot import selenium in new environment Anaconda python 3.6 even though it is installed

I created a new environment and installed some packages in Anaconda prompt:conda create -n webscap requests scrapy lxml selenium html5lib pandas activate webscapconda config --env --add channels conda-forge conda install -n webscap beautifulsoup4I can see the selenium is installed by running !conda list -n webscap in jupyter:selenium 3.9.0 py36_0 conda-forgebut when I import selenium I get:ModuleNotFoundError Traceback (most recent call last)<ipython-input-12-612ef00a7e75> in &l...Read more

selenium - Error while executing soapUI

This is the code I am executing: import groovy.json.JsonSlurper def response= messageExchange.response.responseContent def jsonsl= new JsonSlurper().parseText(response) log.info jsonsl.results(0).id log.info jsonsl.results(0).houseNameError:No signature of method: groovy.json.internal.LazyMap.results() is applicable for argument types: (java.lang.Integer) values: [0] Possible solutions: values(), values(), equals(java.lang.Object), equals(java.lang.Object), equals(java.lang.Object), equals(java.util.Map...Read more

Integration Selenium with either Jmeter or the Grinder

I've been trying to evaluate load and perfomance test tools and i think i might either go with Jmeter or The Grinder. I am struggling to choose between the two and hoping that someone here can help. I am currently using selenium to run functional tests of the web application and i now need to include load testing as part of the batch job. My plan is to automate the whole process. A couple of questions i have about the two toolsIs it possible to use Java to program the test cases to run rather than Jython for Grinder and XML for Jmeter?How easy...Read more

Select Drop-down List using Selenium 1 or 2

I need to navigate frames by clicking this drop-down list using selenium. I need to select the links on the menu and drop-down list. But selenium.click doesn't work. on manual execution:Mouse-Over The SUBSCRIBER link/menu for list to dropped downClick the selected link/menu from the drop-down listI need to automate it through Selenium.Here is the element inspector from firebug:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> ...Read more

selenium - Xvfb Jenkins plugin: Unrecognized option: -displayfd

Jenkins version: 1.573Jenkins Xvfb Plugin version: 1.0.15 (latest)Linux OS: Red Hat Enterprise Linux Server release 5.9 (Tikanga)Xorg -versionX Window System Version 7.1.1Release Date: 12 May 2006X Protocol Version 11, Revision 0, Release 7.1.1Build Operating System: Linux 2.6.18-308.13.1.el5 x86_64 Red Hat, Inc.Current Operating System: Linux kobaloki2 2.6.18-348.16.1.el5 #1 SMP Sat Jul 27 01:05:23 EDT 2013 x86_64Build Date: 06 November 2012Build ID: xorg-x11-server 1.1.1-48.100.el5 Before reporting problems, check http://wiki.x.org ...Read more

retain element values selenium chrome python

I am using selenium-chrome webdriver for logging into a website.In Page -1 , I am selecting values for multiple fields (includes text fields/drop down etc) and click submit on page 1. This opens page2 and by clicking on 'Generate button' - it downloads an excel file.Now i need to go back to Page1 and change JUST one value of a drop down field in page 1 and generate another file (same process).But problem I am facing is, after coming back from Page2, values which were already set in Page1 is refreshed /lost. How can i make sure, earlier values a...Read more

selenium - WebDriverException: Error forwarding the new session Error forwarding the request Connect to my_ip:5555 [/my_ip] failed: Connection timed out

I installed selenium node on AWS windows and started it. And I setup Jenkins, git, Seleniuim hub on AWS Linux. When i'm building app on Jenkins, selenium hub is trying to connect to selenium node of AWS windows with private IP address. And i'm getting following exception:org.openqa.selenium.WebDriverException: Error forwarding the new session Error forwarding the request Connect to windows_private_ip:5555 [/windows_private_ip] failed: Connection timed out (Connection timed out)Command duration or timeout: 190.25 secondsBuild info: version: '3.5...Read more

null pointer exception_using java selenium webdriver with TestNG

when execute the code below , null pointer exception is occures, as driver of class Pom_MainHerokuapp is always nulltestcases:- package testcases;import java.util.concurrent.TimeUnit;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;import org.testng.annotations.Test;import poms.Pom_MainHerokuapp;import testbase.TestBase;public class MainHerokuapp extends TestBase { Pom_MainHerokuapp mainHerokuappObject; public MainHerokuapp() { mainHerokuappObject = new Pom_MainHerokuapp(driver); } @Test(p...Read more

Running Selenium with IE

Can someone pls help with this package IEProjects; import java.io.File; import org.junit.BeforeClass; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.ie.InternetExplorerDriver; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.Test; public class TestIEBrowser { static String driverPath = "IE driver path"; public WebDriver driver; @BeforeClass ...Read more

Selenium pageFactory NullPointerException for driver

Selenium pageFactory NullPointerException. Any help will be appreciated. It works for the login of setUp(), but after that driver comes up null.public class TestBase { public WebDriver driver; String url = PropertiesFile.readPropertiesFile("autUrl"); public WebDriver getDriver() { System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir") + "/driver/chromedriver.exe"); driver = new ChromeDriver(); return driver; } public void getUrl(String url) { driver.get(url); driver...Read more