Category "selenium"

Find Element by Coordinates in Selenium (WebDriver)

I'm aware how to retrieve the coordinates of a web element in Selenium: WebElement element = driver.findElement(By.xpath(XPath)); Point location = element.getL

Is there a way to hide the browser while running selenium in Python?

I am working on a project with selenium to scrape the data, but I don't want the browser to open and pop up. I just wanted to hide the browser and also not to d

How to run XUnit test using data from a CSV file

Is there a way to run a data driven XUnit test using a CSV file as the data source? I've tried Cavity.Data.XUnit, but it's no longer compatible with the newest

Get multiline text from textarea with Selenium VBA

I need to get multiline text from textarea element of web-page. I see in Chrome developer tool that text I need is stored in value property of textarea. I marke

Selenium - Get a list of all the elements between two h1 elements

I have a webpage with the following HTML snippet within it <h1> ... </h1> <p> ... </p> <p> ... </p> <h1> ... </h1&

Selenium WebDriver new tab and Navigate

Based on this post, I managed to open a new tab, but when I try to navigate in the new tab, the navigation occurs in the old tab. I saw that I should use this:

Selenium 3 compatibility issue with FireFox 50? Can't get any iframe

There are two environments, one is my local with Firefox 47 & Selenium 2.0, the other one is remote vm with Firefox 50 & Selenium 3. With the same code

How to automate Google PageSpeed Insights tests using Python

Is there a way to automate checking Google Page Speed scores?

ChromeDriver Does not find the element on the page with selenium JAVA

I am trying to find an element on the page, I want to sorter the result list but my result show me that is not attached on the page: Exception in thread "main"

selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service ./drivers/chromedriver.exe

Trying to set up my first project using Selenium and Python and am getting an error with my chromedriver. I have already found similar questions/solutions on he

Selenium Webdriver and XStudio

Does anybody know how to setup XStudio to run Selenium Webdriver Tests? I cannot find any documentation or information about that. There is only one mention on

python selenium how to copy text?

How to copy text with selenium xpath? When I writing driver.find_elements_by_xpath("//div[@class='rankingItem-value js-countable']").text I get next error

How to send ESC key to close pop up window using Python and Selenium?

As mentioned, is there a way to send global ESC key to close popup(CSS MODAL Window)? I tried following but did not work: driver.find_element_by_tag_name('body

Xpath for button having text as 'New'

In our application almost in every screen we have a button with text 'New', Here is the html source for one of the button: <button id="defaultOverviewTable:

Test if element is present using Selenium WebDriver?

Is there a way how to test if an element is present? Any findElement method would end in an exception, but that is not what I want, because it can be that an el

How to stop selenium from printing WebDriver manager startup logs?

When I'm launching a new selenium driver I get a message as: ====== WebDriver manager ====== Current chromium version is 90.0.4430 Get LATEST chromedriver versi

xcodebuild exited with code '65' and signal 'null'

Hello I am having issues in launching ios real device for testing. My xcode version: 11.2.1 (11B500) Appium Version : 1.13.0 (1.13.0.20190505.6) These are my

Selenium 4.x execute "Page.addScriptToEvaluateOnNewDocument" properly

I'm having a strange issue where I really cannot find a solution. My production website needs some testing and of course bot checking is enabled (not naming it)

Python Global Variable Not Defined - Declared inside Class

I've seen a lot of questions on global variables, but for some reason I still can't get mine to work. Here is my scenario - I have my individual test cases an

How to click elements that have generated id's if I don't know what the ID will be in Selenium

Say I have some HTML mark-up as such: <select id="select_titleOfSelect-1212_01" name="titleOfSelect-1212" <option value="ONE"></optio