Urban75 Home About Offline BrixtonBuzz Contact

Anyone code on here ?

I found SQL to be fairly straightforward. Admittedly I often did some stuff in php that might have been more efficiently done as a more directed SQL statement.
Quite often it is easier and more efficient - and, crucially, more readable and modifiable - to throw logic around in PHP rather than trying to make some massive fancy SQL query. Doing everything in SQL is like doing everything in a regex IMO, sometimes it is possible but as complexity rises it stops being the best way very quickly.

In my last job, heavy queries actually caused the most site failures; PHP itself is pretty robust and fast, particularly 7.
 
I believe you can also do:
Python:
elem = driver.find_element_by_xpath("//<xpath>...")
elem.location_once_scrolled_into_view
 
Anyone familiar with the Selenium module ? I’m using it at the moment for an automation project having an issue trying to write a relative XPath when the html tag is a span class
Code:
//span[contains(@class,'<your classname>')]
You might get a collection back and have to iterate through for the one you want...
 
Just found out, It’s something like //input[@id=“login”]//parent::a[@class=“submit”] you need to go into the parent tag of the HTML
 
Does anyone use Wireshark ? I'm using Version 3.2.4 and trying to create a new capture filter, but with this version there's new option to create anew filter, any help would be appreciated
Thanks Jeff
 
Back
Top Bottom