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

I have a long code with switch statement and want to add new column within...

I have a long code with switch statement and want to add new column within the case, but it should not effect other existing feature files. Then I edit "person" details |Name |Age |Price|Total|New...

View Article


can't click button or submit form using Selenium

I'm trying to use Selenium w/ Python to click on answers to problems posted at a tutoring site, so I can take tests over the command line.I enter the following:from selenium import webdriver from...

View Article


Python Selenium - replacing the location['x'] value within an iteration...

in order to automize some tasks in the browser with Selenium I need to identify a certain field on a website and click it. Because the values I'm using to identify the correct field can be displayed...

View Article

Selenium Python - Clicking button by XPATH error

I am trying to click the login button on a site, however I proceed to get an error.I have tried getting the element by xpath, id, text and other ways but none worked for me.from selenium import...

View Article

I want inform me python

from selenium import webdriver import requests profile=webdriver.FirefoxProfile() profile.set_preference("network.proxy.type", 1) profile.set_preference("network.proxy.http","124.40.251.146")...

View Article


Python selenium execute_script ajax request not returning response

I want to execute a ajax request onto a site but when I run the code, it prints out "None" and not the result.from selenium import webdriver url = "http://google.com" d = webdriver.Chrome() d.get(url)...

View Article

Is there a way to virtually run selenium webdriver?

Is there a way to run a selenium webdriver program virtually? I would like to automate a process that runs virtually, where throughout different stages of the process, it updates the user via the console.

View Article

How to call C# code triggered by some JavaScript event with the help of...

I've Googled about this problem but could not find any questions about this (the inverse direction - execute JavaScript code - is of course more common).If I remember correctly, there is some support...

View Article


unknown error: Chrome failed to start: exited abnormally (Driver info:...

When running selenium test from jenkins, I get this error: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally (Driver info:...

View Article


Speeding up find_elements_by_css_selector in selenium

With reference to this question https://sqa.stackexchange.com/questions/3481/quicker-way-to-assert-that-an-element-does-not-exist I'm trying to write an element_is_not_present helper function:def...

View Article

How to get text of role=alert with Selenium

I want get text of role=alert from HTML page, I can find the element but I'm not able to get the text.<div class="alert alert-danger no-margin" role="alert"> customer.dashboard.InvalidCodeTo find...

View Article

Image may be NSFW.
Clik here to view.

Take screenshot of full page with Selenium Python with chromedriver

After trying out various approaches... I have stumbled upon this page to take full-page screenshot with chromedriver, selenium and python.The original code is here. (and I copy the code in this posting...

View Article

Replace strings in scenario before scenario execution

Say I have the following scenario:Scenario Outline: <testCase> <expectedResult> Given I open the site "#" When I add the following data to shipment | field_name | field_value | | id_1 |...

View Article


Learning to use Assert and Asserttrue in Python for selenium web driver

Im trying to make a python webdriver to load a webpage and then assert true and run a print command if a text or object is there, and if not I want it to just continue running my loop. Im a noob to...

View Article

Get all image src values from website using Selenium WebDriver

I have a wordpress site that has thousands of image files. Problem is, vast majority are redundant and just using up disk space. I need a way to know which ones are actually referenced by the html so...

View Article


How to inspect elements in Winium

I have started using Winium automation tool to automate windows apps. I am new to this tool and I am not finding any documentation for solving my doubts.Following is the basic code that I have refered...

View Article

Click on Material Sortable Header with Selenium

I am trying to perform some automated tests using selenium on an Angular app. One test involves clicking a mat-sort-header. I have not been able to find a way to click the header using selenium.The...

View Article


Image may be NSFW.
Clik here to view.

Python selenium. How to get text of chrome mode mobile

Sorry i' want to get element of mobile chrome. Now i can get in body.but can't get class in body "tableID1" How to get element and text of "tableID1 - tableID10"my code can get only body but can't get...

View Article

How would I take a 3 digit number from a Tkinter entry and translate it into...

Let's say the prompt is, "What is the store number?" The user types in 123 and hits start and what's printed is an IP address in the form of "10.1.23.111" where [10] and [111] are always fixed.

View Article

How to emulate a "Paste" in Selenium IDE add-on for Firefox?

With the help of the Selenium IDE add-on for Firefox, I'm trying to publish a post on Facebook that will include a link, the post should also contain the usual 'link preview' (image and/or description...

View Article
Browsing all 97750 articles
Browse latest View live