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
209 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
894 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
894 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
527 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,170 points
10,066 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
7,354 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
7,021 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,699 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
1,391 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP