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 ArticleA 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 ArticleSelenium 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 Articlejava.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 ArticleHow 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 ArticleOr 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 Articlerobotframework 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 ArticleI 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 ArticleHow 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 ArticleActionsChains 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 ArticleHow 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 ArticleSelenium 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 ArticleTrying 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 ArticleHow 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 ArticleSelenium 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 ArticleSelenium 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 ArticleSelenium 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 ArticlePython 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 ArticleI 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 ArticleRedirect 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