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
605 views

1 answer to this question.

0 votes

You could try using the value of class attribute:

//span[@class="text-white"]
answered Apr 20, 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,080 points
1,710 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 21, 2018 in Selenium by Nabarupa
1,612 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
1,019 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
15,186 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
12,714 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
8,608 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,910 points
6,683 views
0 votes
2 answers

Data loss after page refresh in selenium

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

answered Apr 20, 2020 in Selenium by Liana
2,835 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP