Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing all 97750 articles
Browse latest View live
↧

Selenium Python script has different behavior on Windows and Ubuntu environments

I've tried running a script on Windows and on Ubuntu, both using Python 3 and the latest versions of geckodriver, resulting in differing behavior. The full script is given below.I'm trying to get the...

View Article


A while loop with Try Catch throws exceptions after loop ends

I am working on writing some web-tests using Nunit with selenium in C# I have made a method which results in some weird behavior.The point of the method is to try some action. If the action succeeds...

View Article


Selenium Java Chrome: Stale exception

Here is a code fragment: System.setProperty(Constants.WEBDRIVER_CHROME_DRIVER_PROP, Constants.WEBDRIVER_CHROME_DRIVER_PATH); m_chromeWebdriver = new ChromeDriver(); m_chromeWebdriver.get("mysite.org");...

View Article

java.lang.NoClassDefFoundError:...

I am using Firefox 45.0 and Dependency added in pom.xml is selenium-firefox-driver 2.53.0.java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundException at...

View Article

How to extend a class having parameterized @BeforeMethod

I want to extend BaseClass from all test cases class. For some test cases I want to login with Admin credentials and for some with Customer.Previously this code was working properly as...

View Article


Or condition on ancestors in XPath?

I am trying to phrase a XPath which would look somewhat like this.//div[@class='foo']/ancestor::(fieldset or div)[@class='foo1']But XPath is not working at this point (fieldset or div)A long XPath like...

View Article

robotframework open browser in remote server not work from web page

I've this use case: - robot and application server(apache+php) installed in a linux remote server - a web page that call robot file.My robot file (demo.robot):*** Settings *** Library Selenium2Library...

View Article

I am trying to send.keys a value that I calculated and then click the save...

The value I want to calculate is being calculated properly, and the value is being sent and I can see it being typed, but when I click the save button, the value isn't saving.When I go back to look at...

View Article


How to click on elements within an iframe to enable the captcha through the...

I want to, click on the button to resolve the captcha through the audio, but selenium does not detect the specified "id".browser.get("https://www.google.com/recaptcha/api2/demo") mainWin =...

View Article


Image may be NSFW.
Clik here to view.

ActionsChains says my Xpath is out of bounds of viewport width and height...

This question already has an answer here:Selenium - MoveTargetOutOfBoundsException with Firefox 4 answersFirefox - org.openqa.selenium.interactions.MoveTargetOutOfBoundsException 1...

View Article

How to give multiple parameters in the cucumber feature file

Can i know how to pass multiple parameters in the feature file(cucumber)..?eg: i need to automate the links in the footer section of a website like there are more than 14 links in the section. Which...

View Article

Image may be NSFW.
Clik here to view.

Selenium driver is freezing by switching tabs in browser

I'm trying to parse several goods. The problem is I can parse only first element.To be specific: I need goods which were sorted by "Newest" on the website below. And I click this button before parsing....

View Article

Trying to find a id in elements in python

I need help,I'm trying to print the link from a website, Here is how the code looks like:<div class="tabla_szoveg"> <div style="cursor:pointer" onclick="konyvjelzo('1523442');"...

View Article


Image may be NSFW.
Clik here to view.

How to stop connecting by proxy/disable proxy in selenium webdriver in python...

Previously, I was using selenium webdriver for web scraping purposes for various websites. But on a whim, I decided to try to use rotating proxy IP addresses for web scraping purposes, because I wanted...

View Article

Selenium WebDriver wicket FindElement challenges

I am new to Selenium WebDriver but have largely instrumented a Java/Wicket based app. Unfortunately I am stuck on figuring out how to identify a collection of page navigation controls provided by the...

View Article


Selenium doesn't load redirect page

I have a tool which load a website, fill in the information, and save the result. It was working fine until last week. After debugging, I found out the reason is because the site URL "became"...

View Article

Selenium Wrapper to randomly select an element from a dropDown ( the location...

I want to make selenium wrapper in order to randomly select test parameters, the random values can be selected from a dropdown for instance ....

View Article


Python Selenium script does not run properly in Headless but works without...

My current task was to check the call center phone lines status using Python and Selenium and will send a screenshot through Slack if there is an error in the phone lines.The program works as...

View Article

I am opening a browser and logging in into a webpage. Now i want to open a...

public static void main(String[] args) { System.setProperty("webdriver.gecko.driver", "geckodriver"); WebDriver driver = new FirefoxDriver(); String baseUrl =...

View Article

Redirect to Final url from selenium failing

RequirementGet the Final Url after redirect chain like it happens on the normal browser using selenium . The urls are article urls got from twitter. Behavior on normal Desktop browser after viewing the...

View Article
Browsing all 97750 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>