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

getAttribute(value) method returns null, even though the value exists in...

I am testing an element(button) that sorts(asc or desc) a dynamic table that is part of the website. Was trying to receive value from attribute aria-label with getAttribute() method, but it always...

View Article


selenium error AttributeError: 'list' object has no attribute 'click' [closed]

I have following code:<li id="menu-item-1191" class="quadmenu-item-1191 quadmenu-item quadmenu-item-object-custom quadmenu-item-type-default quadmenu-item-level-0 quadmenu-has-title...

View Article


C# Selenium testing with MS Edge driver

I am using C#, Microsoft.VisualStudio.TestTools.UnitTesting and Selenium to test a website.I know MS Edge is no longer being developed, and is being replaced with a Chromium-based product. In the...

View Article

Selenium is not opening the browser, chromedriver not executing?

So I am trying to run an automation test, and everything was going well until recently. I checked my code, and it didn't seem as though I did anything wrong. Script But it won't open Chrome for some...

View Article

Using Selenium and Chromedriver from python file in AWS EC2 Ubuntu Linux...

When I run my python script in my aws server I get an error saying:File "testingfile.py", line 184, in <module> createtaskvar() File "testingfile.py", line 116, in createtaskvar task[counter + 1]...

View Article


How to append HTML text to div tag in Java

I am dynamically generating a HTML file in Java Selenium Webdriver. The HTML file has two div tags with each having their own unique id attribute.I want to dynamically add HTML text to these div tags...

View Article

Image may be NSFW.
Clik here to view.

Having trouble finding element on page with xpath

I am trying to access the data as shown below.I am using this command to capture the information but to no avail. Does anyone have any tips on where I'm going wrong?Code trials:posts =...

View Article

google log in error using selenium python

Hello I'm a newbie in python i'm trying to to log in to google by python code and the code seems to work but google informs me that " browser or app might not be safe " and they suggested me following...

View Article


How to click on the angularjs enabled element with ng-click

I have below page and I need to click on User Login. I am unable to locate an element to proceed with.<a class="nav-link page-scroll login-a ng-binding" data-toggle="modal" data-target="#loginToast"...

View Article


Auto click a button in a web page

I need to auto click on any of the "Add" buttons in a web page like as the following address:"https://groceries.asda.com/search/yoghurt"But, none of the "Add" buttons in the page has name or id. So I...

View Article

While automating script using selenium webdriver ,`.isDisplayed()` command is...

While automating script using selenium webdriver ,.isDisplayed() command is not working in if else statement. If the condition is true under if statement, then it is working fine. But if the condition...

View Article

Image may be NSFW.
Clik here to view.

[python][selenium] on-screen position of element

Hello i would like to know the on-screen position of some element. I know how to get the position of element in python selenium webriver but how to get offset from left-top corner of screen?

View Article

Using Selenium with PyCharm CE

I'm trying to use Selenium with PyCharm CE. I have installed Selenium using pip install Selenium and I'm able to use it via the terminal however when I try to use it with PyCharm I get an import error...

View Article


Image may be NSFW.
Clik here to view.

Python3 Selenium select in non visible multiselect container [duplicate]

This question already has an answer here:Message: Element <option> could not be scrolled into view while trying to click on an option within a dropdown menu through Selenium 2 answersI would like...

View Article

How to select an option from the GoogleForm non select dropdown using...

I want to select a certain option by automating using python and selenium. I am able to select the text fields by name but I am unsure how to select the dropdowns in the form....

View Article


Selenium Convert getText to integer

I am using the following method to parse some text on the page getNumberText().getText() and want to do a assert/comparison using greaterThanOrEqualToSo How do I convert the getText() result to integer...

View Article

org.openqa.selenium.WebDriverException: Timed out waiting for driver server...

While everything works on my machine, when I bring the project in which I'm working on my server, Selenium and Chromedriver won't boot, causing the following exception2018-08-31 09:16:06,578 ERROR...

View Article


Uncaught DOMException: Blocked a frame with origin "http://localhost:8080"...

I am trying to list the names of all the iframes in a page, so I can access them through Selenium.The problem is that the name of the iframe changes each time, so I need to loop through all of them.I...

View Article

org.openqa.selenium.json.JsonException: Expected to read a START_MAP but...

I am new to Selenium and started learning it. But the Selenium Grid is not working for me. The server version used is selenium-server-standalone-3.14.0.jar. Using command, the hub and node are running....

View Article

Is there way to disable CORS check using RemoteWebDriver for SauceLabs

Question says it all, I m trying to execute some selenium tests on SauceLabs, the test loads a webpage that makes a cross domain request. I was thinking is there a way to disable CORS, in...

View Article
Browsing all 98221 articles
Browse latest View live