Having difficulty with CSS locators in chrome developer tool

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Having difficulty with CSS locators in chrome developer tool

Pritz
Hi,
I am new to Selenium Testing. Thanks so much Tarun for the wonderful videos. I was able to follow and execute every command in the first selenium session. But am having problem with CSS locators..
When I type the following in chrome developer tool,

$$(" select [id = 'searchLanguage'] ")

it returns empty parenthesis []

Can you tell me where am I going wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Having difficulty with CSS locators in chrome developer tool

Gregory
I hope I'm not replying to a dead thread.. but, the wikipedia page has undergone some changes since the videos by Tarun were uploaded.. so if you need to use $$("input[name='searchlanguage']") the empty parenthesis means that the nothing matches the CSS selector you used...

Hope this helps..

-Greg
Reply | Threaded
Open this post in threaded view
|

Re: Having difficulty with CSS locators in chrome developer tool

Pritz
Hi,
Thx for the reply. After much difficulty, I figured I was having a problem with Css locators coz of using empty spaces in the command (trying to make the command look more tidy!!!). 
For example: $$("input [ id = 'searchInput' ]")  - would return empty parenthesis, where as
                    $$("input[id='searchInput']")   - would execute successfully

- Priya


On Fri, Aug 1, 2014 at 8:11 PM, Gregory [via Manual and Automated Testing] <[hidden email]> wrote:
I hope I'm not replying to a dead thread.. but, the wikipedia page has undergone some changes since the videos by Tarun were uploaded.. so if you need to use $$("input[name='searchlanguage']") the empty parenthesis means that the nothing matches the CSS selector you used...

Hope this helps..

-Greg


To unsubscribe from Having difficulty with CSS locators in chrome developer tool, click here.
NAML