Questions tagged [selenium-webdriver]

0

votes
0

answer
4

Views

I have to click and hold at (x,y) position and drag and drop to another (x,y) position while automating webpage

“I have to click and hold at (x,y) position and drag and drop to another (x,y) position while automating webpage. Is there any way i can do that? tried doing actions class but that is not working as it asks for source web element. Can i do it in anyway by using js or something else?”
krishna chaitanya
0

votes
0

answer
4

Views

Why the element cannot be located in method function in selenium?

I already create a method to get the transaction ID but the element cannot be located. I cant retrieve the ID in the web table because it shows an error that unable to locate the element. Besides, it will open another blank window. This is the method to get the ID public String getTransactionID(Stri...
Fatin Shafiqah
1

votes
2

answer
1.8k

Views

Selenium not waiting for page to load

I'm doing some tests with Selenium, and the tests have to login to a system. This login takes 17 seconds to fully happen. The system has to wait for it to finish, otherwise the whole test fails. I've tried many ways to do that, but all of them fail. First code I've tried was this: driver.manage().ti...
Alexander Rumanovsk
1

votes
1

answer
101

Views

How to differentiate between web elements that contain the same class

I want to make a list of elements that contain all the elements from these web elements: and I use the syntax: list = driver.find_elements_by_class_name("league-item-block") The problem is that also have the web elements: The list that is created contains these elements, and I do not know how to av...
Mihai Moldovan
1

votes
1

answer
1.3k

Views

How to enable an “allow-insecure-localhost” flag in Chrome from selenium?

I want to enable "allow-insecure-localhost" flag from selenium. How I can do it? selenium: 3.12.0, Python:3.6.5 Chrome driver creation code: def create_driver(): options = Options() if sys.platform == "darwin": options.binary_location = '/Applications/Google Chrome Canary.app/Contents/MacOS/Google...
KiYugadgeter
0

votes
0

answer
21

Views

Upload Images through Url in selenium Webdriver using Python

driver.find_element(By.XPATH, "//*[@id='upl-zone']/input").send_keys("https://ercess.com//images//events//-Blockchain-2019-36613-banner.png") Is there any way to make that work ? [ERROR] selenium.common.exceptions.InvalidArgumentException: Message: File not found: https://ercess.com//images//events/...
Nitish
1

votes
1

answer
1.3k

Views

Rails: Selenium::WebDriver::Error::WebDriverError: not executable: 'chromedriver-helper'

I've setup Rails environment two days ago and I thought things were going fine but then when I ran rake test command it got aborted due to this load error: Bundler::GemRequireError: There was an error while trying to load the gem 'chromedriver-helper'` `Caused by: Selenium::WebDriver::Error::WebDriv...
Hajar
1

votes
1

answer
119

Views

Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME when rendering jstree with with capybara and headless chrome

Recently I switched to headless chrome in my rspec tests. After the move all my tests which interact with jstree element started to fail. Below is the smallest code which allow to reproduce the bug: There are dependencies in the Gemfile: # Gemfile gem 'capybara', '2.18.0' gem 'selenium-webdriver', '...
Hirurg103
1

votes
3

answer
45

Views

How to configure Selenium WebDriver with Spring Boot for UI testing?

Not able to configure WebDriver correctly hence my functional test are failing for UI. I looked into both these SO links but not sure how to use the geckodriver.exe here and what is purpose of it. Spring Boot GUI Testing Selenium WebDriver Spring Boot Web Application using Selenium WebDriver I also...
user2325154
0

votes
0

answer
14

Views

Not able to select hidden element from drop down list in Selenium Webdriver

Html Code: Optus AC Number Date Of Birth Pass Phrase Transaction Id I'm using following code(POM) in Selenium Webdriver(with java) to select: public static By campAddDataType= By.id("Step1Model_CampaignAdditionalDataTypeId"); waitTime = new WebDriverWait(driver,20); waitTime.until(ExpectedConditions...
Samy
0

votes
3

answer
14

Views

How to get rid of the hardcoded sleep()?

def textfield(boxid,textadded): project = driver.find_element_by_id(boxid) project.send_keys(textadded) sleep(3) def dropdown(dropdownid, dropdownvalue): select = Select(driver.find_element_by_id(dropdownid)) select.select_by_visible_text(dropdownvalue) sleep(5) These 2 functions are functional howe...
Steve
3

votes
2

answer
172

Views

Using Selenium WebDriver in library csproj with .NET Core

I'm trying to put together a web-scraping app, using Selenium and .NET Core, but I'm having trouble getting my WebDriver exes to be found. I have one .csproj that will run the API for the project, which calls out to (amongst others) another .csproj that will handle the webscraping. All are in a sing...
Brondahl
1

votes
1

answer
4.5k

Views

How to create a single webdriver instance in python?

I am in the midst of creating an automation framework in python but I am stuck up in creating a single instance of web driver. Here's an excerpt of my framework design: A separate Driver.py which has the set up to create a web driver instance from selenium import webdriver class Driver: #creating a...
Praveen Pandey
0

votes
0

answer
6

Views

Is there a way to use a matcher like 'Verify' in rspec?

So far I'm using 'expect' in my test framework which will stop the execution when it meets a fail condition. I want something like, the execution should happen even if it meets the fail condition. I could see that there is a matcher called 'Verify' in rspec where I need to inherit 'Test::Unit::TestC...
esakiraja
1

votes
2

answer
707

Views

Can we write and run scripts in Selenium Webdriver without installing JDK?

I am new to selenium webdriver. We are working on creating a POC for automation testing using Selenium. I wanted to know if we can write and run selenium webdriver test cases in Java without installing JDK? I do have JRE installed on my machine but in my project we cannot install JDK. Also, if we ca...
HelloWorld
1

votes
3

answer
871

Views

How can i test an angular js web application with selenium?

I'm new in Test Automation. I want to use Selenium in order to test web application done by angular js. Can someone suggest to me how to start with a basic application and do you have an example of an angular js application.
Emna
1

votes
1

answer
133

Views

Possible bottle-neck issue in web-scraping with Python

First of all I apologize for the vague title, but the problem is that I'm not sure what is causing the error. I'm using Python to extrapolate some data from a website. The code I created works perfectly when passing one link at the time, but somehow breaks when trying to collect the data from the 80...
Shark8
0

votes
0

answer
8

Views

I am trying to write automation to be able to open an RDP and automate the applications that are opened in RDP. Can we do that?

Ihave written code to open up an RDP connection but the RDP opens up as an IE. The same web link does not work in chrome/IE and the only way to pen up that link is by using RDP connection. So, my question is can I automate the rdp opened IE like a regular IE? So I want to perform some tests in the r...
uday ganesh
1

votes
2

answer
1.2k

Views

How to put file path of chromedrive on Eclipse

How can I use Selenium to run for Google Chrome on Mac OS? I have put the code underneath but it is still giving me an error. System.setProperty("webdriver.chrome.driver", "/Users/STQRY/Document/Jay"); WebDriver driver = new ChromeDriver(); ERROR: ".....The driver executable is a directory: /Users/...
Jay
1

votes
1

answer
391

Views

Selecting a frameset with index in Selenium with Python

Im currently in the phase of learning selenium with python. Following is the code im trying to run: browser=webdriver.Firefox() browser.maximize_window() browser.get('https://netbanking.hdfcbank.com') #print browser.page_source elems=browser.find_elements_by_tag_name('frameset') browser.switch_to_fr...
abhishek nair
1

votes
5

answer
23.7k

Views

Open mails from Gmail inbox using selenium webdriver using java

I need to open mails from Gmail inbox using selenium webdriver using java in Eclipse IDE. Is there a way to do this using xpath?
Binu
1

votes
1

answer
493

Views

How to load custom chrome extension using selenium web driver in ruby?

Is there any way that I could load custom chrome extension(is actually a folder of js files) when I execute selenium web driver?.
esakiraja
1

votes
1

answer
294

Views

When right clicking on an element I get an “uninitialized constant Selenium::WebDriver::DriverExtensions::HasInputDevices (NameError)” error

After upgrading all my ruby gems including watir-webdriver to the latest v0.9.9 I got the below error when my script tries to right click on an element Below is the code that executes the And I right click on layer 1 in the import tab step def select_layer_import_tab(layer_num) layer_index = (layer_...
Costa
1

votes
2

answer
343

Views

Selenium Python: Check that JS variable is true

I am trying to use the selenium package in python to load up dynamical websites to be saved. But I am having mixed success. I noticed that there is a difference between the pages successfully saved and those not. In the HTML source of the successful ones, I see var PageIsReady = true; whereas for t...
Spinor8
1

votes
1

answer
1.3k

Views

Selenium WebDriver times out at 60 seconds no matter the interval wait time i set

So I'm running automated UI tests with Selenium Web Driver (using PhantomJS as a headless browser) on a web application. When I get to a certain point in my test -- a page where the web app takes over a minute to load the next page (up to 3 minutes some times) -- It will fail. I get below error mess...
C. Offutt
1

votes
3

answer
3.3k

Views

How to make a scenario that depends on another scenario using cucumber, selenium and java

I am learning cucumber through some tutorials and there is something that I don't know how to do.. I need to make a scenario that depends on another scenario (for example log out scenario I have to be logged in first before logging out) so what should I do? should I write steps of login at log out s...
Asmaa Elhussainy
1

votes
2

answer
1.2k

Views

How to run multiple webdriver python programs at the same time?

I have 4 Python scripts (3 web drivers and a main script). I would like to open these 3 web drivers at the same time when I run the mainscript.py. I used multiprocessing but you can use whatever you want. Now it opens bot_1.py and then bot_2.py and then bot_3.py. bot_1.py from selenium import webdri...
Andrei Ghervan
1

votes
1

answer
900

Views

How to use the same browser window in multiple classes using TestNG Selenium webdriver in java?

I am trying to automate a webpage which has a login and post login has many menu item. I would like to automate it in such a way that it logs into the webpage only once and then use the different menu items. Each new menu item automation is created in a different class. package pack1; public class I...
Adil Afsar
1

votes
2

answer
2.5k

Views

selenium.common.exceptions.WebDriverException: Message: 'library' executable may have wrong permissions for ChromeDriver

I want to use the chrome webdriver to connect to "https://www.google.com". below is the code. from selenium import webdriver import time driver = webdriver.Chrome("C:\\Users\\faisal\\library") driver.set_page_load_timeout(10) driver.get("https://www.google.com") driver.find_element_by...
faisal abdulai
1

votes
1

answer
877

Views

The chromedriver is not working and getting ERROR: connect ECONNREFUSED 127.0.0.1:4444 in webdriverio frame work

I am using webdriverIO Mocha frame work and i tried many solution but still getting the below error. So help me resolve this issue [23:57:52]  COMMAND     POST     "/wd/hub/session" [23:57:52]  DATA                {"desiredCapabilities":{"javas...
user2641604
1

votes
1

answer
281

Views

error while importing webdriver from selenium in python

The first thing I wanted to do is, installing Selenium in Windows and import webdriver from selenium. So, I installed Selenium with pip install selenium and tried to import webdriver with: from selenium import webdriver But I got the error: File "C:\Users\VIJAY\Desktop\selenium.py", line 2, in fro...
vijay MV
1

votes
2

answer
2.6k

Views

org.openqa.selenium.json.JsonOutput.write(Ljava/lang/Object;Ljava/lang/reflect/Type;) due to JsonException: Attempting to close incomplete json stream

I am getting the above Json exception after I updated my TestNG to 6.14.3 and Selenium to 3.13.0. I am using ChromeDriver() for my automation. Here's a brief idea about my code: @BeforeSuite: System.setProperty("webdriver.chrome.driver", "path to chrome driver"); @BeforeMethod: driver = new ChromeDr...
Sagar Jani
1

votes
1

answer
62

Views

How to get the latitude and longitude (map icon) from a website using selenium?

I am trying to scrape a website to find the latitude and longitude of that place. The map icon is available on the website. The map icon when clicked redirects to the justdial map. The icon in the website is as The inspect element for the map icon is Map It seems to me like view_map is a function an...
Himanshu Poddar
1

votes
2

answer
59

Views

Couldn't click on element by using the xpath with selenium in python

I'm trying out the selenium framework to learn something about the web browser automation. Therefore, I decided to build an Audi model... My code so far: from selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDrive...
PythonNoob
1

votes
2

answer
43

Views

AttributeError: 'list' object has no attribute 'click' - Selenium Webdriver using Python [duplicate]

This question already has an answer here: 'list' object has no attribute 'get_attribute' while iterating through WebElements 3 answers I am trying to use click command in Selenium webdriver using python. But I am getting the below error. Can some one help me? Traceback (most recent call last): Fil...
1

votes
2

answer
51

Views

PhantomJS with Selenium: Message: 'phantomjs' executable needs to be in PATH

I having trouble installing PhantomJS to my project Following the suggestions from the similar question from so I defined the $PATH variable with executable path cd Users/zkid18/project/venv/venv_name/lib/python3.6/site-packages/phantomjs-2.1.1/bin export PATH=$PWD Then I try to create a driver wit...
Daniel Chepenko
1

votes
2

answer
43

Views

How to load each cookie file in a folder with pickle

In my cookies folder, there are many files cookies1.txt, cookies2.txt, ... and below is my script, I try to use it to login facebook with cookies, with each cookie file it will load and execute an action then finish and perform the next load file, it works fine when I run each cookie one by one but...
vantuong
1

votes
2

answer
52

Views

Which loop should I use to remove all data entries within a table using Selenium?

I need to code out a loop to remove all entries within the table. To remove the entries, I need to use Selenium to 'tick' the delete checkbox and click on 'save'. However, every entry has a unique 'checkbox' name. The first entry will be called delete0, the second entry is called delete1 and so on s...
Dan
1

votes
3

answer
46

Views

Unable to locate SVG elements through xpath on Kendo UI chart

I did try some of xpaths but seems no luck. I want to click on country and then graph , Given below screenshot : Website URL is : https://demos.telerik.com/kendo-ui/bar-charts/column I tried xpaths : //text(text()='India') //g//text(text()='India')
Helping Hands
1

votes
1

answer
43

Views

How to access a site via a headless driver without being denied permission

I am trying to retrieve the html code of a site using a headless chrome driver. However I get a "permission denied" message. If I use a "regular" driver it all works fine. Is there any way to bypass that? It's my first post so I do apologize for any potential mistakes in formatting from selenium i...
little_adventurer

View additional questions

Смотреть фильмы онлайн бабушка легкого поведения 2 фильм бесплатно