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

I am working on selenium webdriver and want to set the current date

I tried doing this:Date date = new Date(); String lastDate = (date.toString().trim()); // display time and date using toString() System.out.println(date.toString()); but here the system date is being...

View Article


Selenium Can not connect to the Service chromedriver using python

So I have made a program on one computer using selenium and that worked, Now using it in another computer I get this error:selenium.common.exceptions.WebDriverException: Message: Can not connect to the...

View Article


NullPointerException when using pagefactory

Code:BASECLASS.JAVApublic class baseclass { public static WebDriver driver; public baseclass(WebDriver driver) { // TODO Auto-generated constructor stub this.driver=driver;...

View Article

How To Run Selenium With Chrome In Docker

I installed google-chrome in a Docker, but when I run my Python 2 script of Selenium, it failed like this:automation@1c17781fef0c:/topology-editor/test$ python test.py Traceback (most recent call...

View Article

selenium based jar executable failed to run in jenkins [duplicate]

This question already has an answer here:WebDriverException: Message: invalid argument: can't kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3 8 answersI have a simple jar...

View Article


The browser does not get closed when test case is completed in visual studio

I am using selenium webdriver in visual studio. The code of test case is [TestInitialize] public void wd() { WDriver = Helper.GetWebDriver(helperconst.browserType.Chrome); } [Priority(1)] [TestMethod]...

View Article

Image may be NSFW.
Clik here to view.

Python selenium upload a file using windows browser

I am working on a browser automation project in Python using selenium. I am trying to upload a picture to a page. I login, go to the page, and click the upload button. After clicking the upload button,...

View Article

Unable to scroll down the web page using the Robot Framework

I am using Selenium 2 and Robot Framework to automate our application. I have used the below JavaScript code to scroll down the page but am not able to scroll.I want to enter text inside the text box...

View Article


Image may be NSFW.
Clik here to view.

Handling window pop up with selenium [duplicate]

This question already has an answer here:How to allow or deny notification geo-location microphone camera pop up 1 answerI am currently working on a bot that logs into instagram, I currently have the...

View Article


Distorted HTML content using selenium get_attribute

I am trying to get the innerHTML of an element using:de_nc = driver.find_element_by_css_selector('element').get_attribute("innerHTML") But i get the following:<a...

View Article

Not able to put date value from excel file into web application form

i am using excel file to import test data in web form. i have one field in the excel name as date and value is 12/01/2019 , but when i am using this value in selenium then i am getting below...

View Article

Use Spectron or selenium test electron based application, start Electron from...

I have electron based application need to automate, but start exe need to pass parameter, how to pass parameters when use spectron or selenium to do the automation?Here is the cmd to start Electron...

View Article

Selenium clicking a link where the href is javascript:void[0];

I'm trying to see if when a link is clicked a report is generated on the page using Selenium WebDriver with Java.What happens is there are a bunch of links on a page, most of them when clicked go to...

View Article


Unable to view my nightwatch report in Reportportal

I am running the let RPClient = require('reportportal-client');let rpClient = new RPClient({ uuid: "xxx-xx-xxx-xxxx-xxxxxxx", endpoint: "https://xxx-dev.xxx.xxx.com:8080/api/b1", launch:...

View Article

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


Image may be NSFW.
Clik here to view.

Python +Selenium can't find element to send key

I already deal with it for many days having no idea how to solve it...That is the element I want to get by selenium<input name="QUICKSEARCH_STRING" id="QUICKSEARCH_STRING"...

View Article

How to upload selected file with Selenium in Python?

I want to upload files to Google Drive, but the < input type = "file"> tag does not exist in HTML. File selection window opens How can I select the file I want in this section?

View Article


To get particular value from HTML text

I have a scenario where i need to fetch the value of patientIId from the text returned in the format of HTML. When i query the below xpath "driver.findElement(By.Xpath("....xpath ...")).getText();"I...

View Article

How to implement robot class with selenium grid

We need to leverage selenium grid to handle window security dialog. we have gone through below link How to use java robot class on remote machineHowever need to know sample code how to implement as the...

View Article

Select a textbox with Python Selenium, changing frame

Warning: Complete NoviceI'm trying to select the text box for the 'Login ID' on the website: https://www.schwab.com/public/schwab/nn/login/login.html&lang=enI'm using Python 3.7 and Selenium. I've...

View Article
Browsing all 98784 articles
Browse latest View live


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