You shouldn't. JQuery selectors offer most of what CSS 2 and CSS 3 selectors do, plus something more, but you can probably live without it. If you know JQuery selectors, you already know CSS selectors. Use CSS selectors where you can and use XPath expressions where it's not enough (they're stronger). I doubt you'll find many real usages where these two aren't enough (and then, the usual approach is to get what you can and iterate over the collection, filtering the results manually).
That said, you could possibly force WebDriver to accept JQuery selectors, too: If you only want to support one or two browsers, the easiest way might be to write a simple addon to that browser which would inject JQuery to every page if it's not already present. You'd then force this addon to be used by the browser you're using. If you want to support all of the browsers, that solution quickly becomes a burden and the best you could do is to write a decorator for WebDriver that would try to inject JQuery into the page before any findElements() and/or executeScript() call, if it's not already present. See this question to get an idea about injecting JQuery.
... View more
Hello leviya, Cybersecurity protects individuals and organizations from cyberattacks. Here are some solutions, including both technical and human components: Real-time Intelligence:Real-time intelligence is a powerful tool for preventing and containing cyber attacks. The longer it takes to identify a hack, the more costly its consequences. With just 60 seconds’ notification of a compromise, resulting costs could be reduced by 40%. Complementary Actions: Enacting a multi-layered defense strategy. Ensure that it coversyour entire enterprise, all endpoints, mobile devices, applications, and data. Third-party assessments. Implement a “least privilege” policy regarding who and what others can access. Make it a habit to review the use of credentials with third parties. You could even take it a step further with a service level agreement (SLA). Continuously backing-up data. This can help to safeguard against ransomware, which freezes computer files until the victim meets the monetary demands.
... View more