Skip to main content

All Questions

1 vote
2 answers
139 views

Selenium Python: Invalid Selector in find_element_by_css_selector (Error)

I'm doing an automation to search a certain process on a website and collect information. When requesting data collection, it returns the following error: "Selenium Python: Invalid Selector in ...
Avestruz's user avatar
0 votes
2 answers
61 views

How can I get text value from element

I've got issue with get text element <style id="main-style-inline-css" type="text/css"> body{--accent:141, 65, 48;--accent--tone:199, 111, 92; ... </style> Tried, but ...
Jerzy Plecinski's user avatar
1 vote
1 answer
48 views

python selenium, how do I seperte functions with css selectors

I'm trying to seperate my script into different functions (so its easier to re-use parts) however when I do so selenium seems to be unable to find css selectors. Folder structure: Startup.py ...
john's user avatar
  • 11
1 vote
1 answer
101 views

Unable to get response in css selector or xpath expression

I am trying to get the movie names from https://www.sunnxt.com/movie/inside/ website. When I go to inspect element it shows me elements with movie names, but when I perform css selector or xpath ...
Pradeep's user avatar
  • 655
3 votes
4 answers
22k views

Python + Selenium: How can click on "onclick" elements?

I have an "onclick" element in a webpage whose HTML reads as follows: <a href="#" onclick="fastener('3625')">Fastener</a> I want to search this element using the string "fastener" or "...
kksagar's user avatar
  • 267
0 votes
0 answers
208 views

Locating element by css in internet explorer for selenium-webdriver using python

I want to locate an element by css in internet explorer for this particular set of tags. <header class="panel-heading" id="uploadSupply"> <form action="/emapweb/OPSReport/UploadSupplyData" ...
Abul's user avatar
  • 195
0 votes
1 answer
198 views

what will be the css path of the Export csv element

Below is the content of a drop down. I want to click on export csv. what is the css path for export csv so that i can click on it through selenium web driver. Select class is not applicable since no ...
panchanan's user avatar
  • 192
0 votes
1 answer
56 views

select a value inside of a dropdown menu by the text value

I have 2 drop down menus on the same window. Both of their codes are the same however the values are different. The first drop down menu: <div style="width: 302px; display: block; top: 263px; ...
royalblue's user avatar
  • 449
1 vote
1 answer
2k views

Click Element with Selenium python

I am trying to click a button using Selenium. Below is the code <div class="ui-dialog-buttonset"> <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" ...
royalblue's user avatar
  • 449
2 votes
1 answer
424 views

Selenium Webdriver Python using XPATH found text from column 1 of html table how do i go to column 3

I have a HTML table with some columns. Using XPATH I have found the text from the Name column. This is column index [1] From here I want to continue my XPATH and go to the the 3rd column. Index [3] ...
Riaz Ladhani's user avatar
  • 4,082
0 votes
2 answers
372 views

Selenium Webdriver Python select a dropdown error local variable element referenced before assignment [duplicate]

I am trying to select a drop down element but I am getting the error Error Traceback (most recent call last): File "C:\Webdriver\ClearCore\TestCases\OperationsPage_TestCase.py", line 59, in ...
Riaz Ladhani's user avatar
  • 4,082
1 vote
2 answers
630 views

XPATH or CSS I I have a list of checkboxes in span tags. I am trying to select a particular checkbox

I have a list of checkboxes in the HTML span tag. In the span tag there is an input tag and a label tag. I would like to click the checkbox in the input tag which has the label text e.g. "Allow ...
Riaz Ladhani's user avatar
  • 4,082
5 votes
4 answers
17k views

Webdriver: How to find elements when class name contains space?

Each of the "7-pack" search results here contains a number of reviews e.g. "5 reviews", No reviews" etc. The class name for each is fl r-iNTHbQvDybDU. It contains a space, so if I try ...
Pyderman's user avatar
  • 16.3k