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

Scroll a webpage which doesn't have a scroll bar - Selenium Java

I tried the following but still I am unable to scroll. Eg. Scroll to the 8th tile in the page.Webpage: https://silveraisle.com/#/products?brand=Dankotuwa((JavascriptExecutor)...

View Article


Difference between invisibilityOf and invisibilityOfElementLocated

Let's say that I want to verify if the loading spinner is not visible anymoreinvisibilityOf: true when elements are not visible...

View Article


Image may be NSFW.
Clik here to view.

How to find element with "== $0" after end tag in html using Xpath, css or...

I have to find element with "== $0" after end tag of "span". Below is the HTML Code of element.<div _ngcontent-c6="" class="col-12"> <span _ngcontent-c6="">Registration with prefilled...

View Article

Image may be NSFW.
Clik here to view.

How to click on anchor element with selenium using python?

I am new to selenium and i have been trying for some time to click on an anchor element. I have tried css-selector,lint_text,xpath,absolute xpath but i am still unable to click on it and instead i am...

View Article

Not able to exit the while loop after the click is not available

What I am trying to achieve is that I have a list of similar elements present in a page from which I want to extract the attribute from the element. While doing so once one page is done the code should...

View Article


How to locate the descendant label elements using Selenium and Python

I'm using Selenium python to try to find out all the descendant under the fisrt div,so I used this code:label_element =driver.find_elements_by_xpath("//div[@style='display:block']/descendant::label")...

View Article

How to get web driver of current web element?

The condition is to get web driver(WebDriver) and locator(By) of current web element.I have list of web elements in that i am iterating the element one by one.Whichever the element i will get i want...

View Article

Image may be NSFW.
Clik here to view.

Issue with DoubleClick method of Actions in Selenium WebDriver C#

While working with selenium webdriver in C#, I am encountering an issue. Below is the code to click on the icon, which is marked in the red area(in the image).IWebDriver driver = new...

View Article


Is it possible to have visible element without height and width?

I've been going through existing Selenium automation framework where it has a code which checks for width and height of an element. If they have positive values only then it will be interactable like...

View Article


Setting Custom Headers in PhantomJS (Selenium with Python)

I've been trying to get PhantomJS to set custom user agent, meanwhile using the proxy with authentication. Basically, I have 2 cases that I absolutely need.1.) To be able to use custom User Agent.2.)...

View Article

How to Embed the exe file to my java project [closed]

I am working on a project which uses chromedriver.exe. How can I create a standalone distribution of my project so that it works on multiple system seamlessly? Also help me with the code too.

View Article

How to install an extension on Firefox while creating a webdriver through...

I want to start a Firefox session with an installed extension: https://addons.mozilla.org/en-US/firefox/addon/har-export-trigger/My environment:robotframework 3.2a1 robotframework-seleniumlibrary...

View Article

How to Calculate number of graphs exists in page and how to take tooltips of...

This question already has an answer here:How to extract the tooltip text within an Angular 7 application using Selenium 1 answerI have multiple drop-downs in my page and multiple radio buttons...

View Article


Selenium + Firefox + Python: Download Directory issue

I have read these QA :Downloading file to specified location with Selenium and pythonAccess to file download dialog in Firefoxand this blog : Working with file download in Python Selenium WebDriverI...

View Article

Selenium webdriver.Remote driver does not work with tor...

I'm trying to use socks5 proxy on my remote driver which is hosted as a docker container on port 4444. here is code-sample:from selenium import webdriver opts = webdriver.ChromeOptions()...

View Article


How to increment a var in Selenium IDE

I need some help. I have the last version of Selenium IDE and i cant increment a var with this method. The var is "MyVar" and its stored like this:store 1 MyVar And here you have the code what im using...

View Article

Pass POJOs in Cucumber Example table

Description: As a test developer, I would like to use a single scenario to test 3 different environments.Simplified Scenario example: @smoke Scenario: Login to the login page and assert that the user...

View Article


Unable to get focus back on to main window and click on disconnect button

I have the below codeAfter coming back to main window unable to get focus and disconnect button is not getting clickedparent_handle = driver.window_handles[0] #clicks on link...

View Article

Selenium Python Element.click not working

I am new to Selenium and I am trying to mimic user actions on a site to download a csv file.The "Get Data" button generates the link "download file in csv format" when I do it manually but it doesn't...

View Article

How to press 'Home' button on real android device

Im writing some QA tests for android and faced with issue that any of known methods for pressing 'Home' button dont work. I want to mention that I use AppiumDriver, not AndroidDriver.((AndroidDriver)...

View Article
Browsing all 97750 articles
Browse latest View live


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