Category "selenium"

launching chrome or IE via selenium VBA

I have written a code for web data downloading using selenium VBA, it works good in Firefox, but many time Firefox is crashing. I tried to launch chrome/IE from

selenium with geckodriver does not respect download dir and download filename when executing window.print();

I have a set up where I print the page as pdf using selenium+gecko. But, whatever I do, it does not seem to respect the download.dir option I set nor the downlo

Unable to locate the Sign In element within #shadow-root (open) using Selenium and Python

I'm trying to use selenium to automate some actions but am unable to find the first element on the page https://developer.servicenow.com/dev.do and so cannot lo

How do I set browser width and height in Selenium WebDriver?

I'm using Selenium WebDriver for Python. I want instantiate the browser with a specific width and height. So far the closest I can get is: driver = webdriver.F

Check Selected Product and product which is added to cart are same or not

I have searched for a mobile product which is of type " Asus Zenfone 5 " in flipkart.com website, search display many products. I selected first product and add

Using Selenium in Python to click through all elements with the same class name

I am trying to click on all of the "like" buttons on a webpage. I know how to click on one of them, but I'd like to be able to click them all. They have the s

Why use Page Factory?

I am a new test engineer and have been reading about Page Object Model and implementing them and keep coming across Page Factory. I understand that Page Factory

What is the correct way to run mobile UI tests using Appium?

Using Selenium webdriver we can open needed webpage like a precondition before our tests. But how to realize the same way in mobile and does it make any sence?

Selenium Can't locate the element while trying to click

I was scraping fembed just as a personal project but I kept running into errors.For getting the streaming url I needed to click the get the request through sele

What is a Selenium wrapper?

Does it wrap around Selenium and provide a simpler or different method of invoking the functionality of Selenium? I looked it up on Google and the best informat

How to install custom extension to headless Firefox in Linux?

Automated tests with Selenium are awesome, but how to do them on headless Firefox with a pre-installed extension? I found this for Chrome, but nothing for Fir

How to get request headers in Selenium

https://www.sahibinden.com/en If you open it incognito window and check headers in Fiddler then these are the two main headers you get: When I click the las

WebDriverException: no chrome binary at /usr/bin/google-chrome-stable or chrome binary not found

I am executing selenium test via Jenkins server in AWS Ubuntu. I was getting chrome binary not found error so I set chrome binary in my code. System.setPrope

How to maximize Headless Chrome window in Robot Framework?

I'm not able to start Headless chrome with a maximized window. I tried two solutions but none of them worked for me. First solution : Open Browser ${LOGIN_

Could not find or load main class org.testng.remote.RemoteTestNG - in Eclipse

I've tried to update Selenium webdriver version and now i cant run my tests because of following exception: Error: Could not find or load main class org.t

How to get attribute of element from Selenium?

I'm working with Selenium in Python. I would like to get the .val() of a <select> element and check that it is what I expect. This is my code: def test_

Python Selenium - I'm trying to use pytest framework , running into errors

from selenium import webdriver from selenium.webdriver.common.by import By from commonPages.LoginPage import LoginPage from util.InitialSetUp import InitSetup

Is there any ways to set "noReset" Appium capability only for one test?

I wanna compare the data between closing app and launching it again. If I don't set noReset capability to true all the data clear up, but I need this option onl

How can I find element by non-unique resousre-id?

I test an application which use non-unique resourse-id for elements. Is there any way to find such elements by xpath like //*[@resourse-id='non-unique-id'][2

How can I find element by non-unique resousre-id?

I test an application which use non-unique resourse-id for elements. Is there any way to find such elements by xpath like //*[@resourse-id='non-unique-id'][2