click on Sign In by using css selector

0 votes

I want to click on Sign in which is Span tag by using css selector;

driver.find_element_by_css_selector("span:contains('Sign In')")

following is code from website;

<a aria-label="Use the Enter key to use the profile pane" data-e2e-link="LoginSignInButton" role="menuitem" class="ng-star-inserted"><span class="text-white">Sign In</span></a>
Apr 19, 2020 in Selenium by Umair
• 140 points
137 views

1 answer to this question.

0 votes

You could try using the value of class attribute:

//span[@class="text-white"]
answered Apr 19, 2020 by Kim

Related Questions In Selenium

0 votes
1 answer

Locating an element by value using css selector using Selenium WebDriver

Below code will help By.cssSelector("td[class='someclass'][value=' ...READ MORE

answered Apr 9, 2018 in Selenium by coldcode
• 2,070 points
735 views
0 votes
1 answer

How can I click on male tag in facebook using selenium?

There is an approach for locating an ...READ MORE

answered Dec 20, 2018 in Selenium by Nabarupa
741 views
0 votes
1 answer

How to use css selector in selenium using Java?

Hello @Jino, CSS Selector is pretty easy to ...READ MORE

answered Dec 21, 2018 in Selenium by Nabarupa
380 views
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8, 2019 in Selenium by Anvi
• 14,150 points
7,517 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
5,929 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
6,395 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
4,031 views
0 votes
2 answers

Data loss after page refresh in selenium

The easiest way to reload current page ...READ MORE

answered Apr 19, 2020 in Selenium by Liana
1,033 views