how this change code to code me seleniym python
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
PlajePariuri = driver.find_elements_by_xpath("//ul[@class='KambiBC-list-view__column']")
for items in PlajePariuri:
NumePlaje = items.find_element_by_xpath("//li/header/h2")
print (NumePlaje.text)
try:
element_present = EC.presence_of_element_located((By.CLASS_NAME, 'KambiBC-event-result__score-list'))
WebDriverWait(driver, 4).until(element_present)
except TimeoutException:
print ('Timed out waiting for page to load')
event = driver.find_elements_by_class_name('KambiBC-event-item KambiBC-event-item--type-match')
for items in event:
link = items.find_element_by_class_name('KambiBC-event-item__link')
scoruri = items.find_element_by_class_name('KambiBC-event-item__score-container')
scor1 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[1]")
scor2 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[2]")
print (scor1.text)
print (scor2.text)`-
`
if scor1.text == '0' and scor2.text == '0':
link.click()
time.sleep(3)
How to replace the above code with the code below
code for like post Instagram feed
<span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span>
I want to get Instagram posts on the home page
If you have an idea, please guide me
One of the problems is that all posts have a static code
Only their peers are not liked or liked
I want to define a loop which classes to find a name and order them to click
python-3.x selenium-webdriver selenium-chromedriver
add a comment |
PlajePariuri = driver.find_elements_by_xpath("//ul[@class='KambiBC-list-view__column']")
for items in PlajePariuri:
NumePlaje = items.find_element_by_xpath("//li/header/h2")
print (NumePlaje.text)
try:
element_present = EC.presence_of_element_located((By.CLASS_NAME, 'KambiBC-event-result__score-list'))
WebDriverWait(driver, 4).until(element_present)
except TimeoutException:
print ('Timed out waiting for page to load')
event = driver.find_elements_by_class_name('KambiBC-event-item KambiBC-event-item--type-match')
for items in event:
link = items.find_element_by_class_name('KambiBC-event-item__link')
scoruri = items.find_element_by_class_name('KambiBC-event-item__score-container')
scor1 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[1]")
scor2 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[2]")
print (scor1.text)
print (scor2.text)`-
`
if scor1.text == '0' and scor2.text == '0':
link.click()
time.sleep(3)
How to replace the above code with the code below
code for like post Instagram feed
<span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span>
I want to get Instagram posts on the home page
If you have an idea, please guide me
One of the problems is that all posts have a static code
Only their peers are not liked or liked
I want to define a loop which classes to find a name and order them to click
python-3.x selenium-webdriver selenium-chromedriver
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28
add a comment |
PlajePariuri = driver.find_elements_by_xpath("//ul[@class='KambiBC-list-view__column']")
for items in PlajePariuri:
NumePlaje = items.find_element_by_xpath("//li/header/h2")
print (NumePlaje.text)
try:
element_present = EC.presence_of_element_located((By.CLASS_NAME, 'KambiBC-event-result__score-list'))
WebDriverWait(driver, 4).until(element_present)
except TimeoutException:
print ('Timed out waiting for page to load')
event = driver.find_elements_by_class_name('KambiBC-event-item KambiBC-event-item--type-match')
for items in event:
link = items.find_element_by_class_name('KambiBC-event-item__link')
scoruri = items.find_element_by_class_name('KambiBC-event-item__score-container')
scor1 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[1]")
scor2 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[2]")
print (scor1.text)
print (scor2.text)`-
`
if scor1.text == '0' and scor2.text == '0':
link.click()
time.sleep(3)
How to replace the above code with the code below
code for like post Instagram feed
<span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span>
I want to get Instagram posts on the home page
If you have an idea, please guide me
One of the problems is that all posts have a static code
Only their peers are not liked or liked
I want to define a loop which classes to find a name and order them to click
python-3.x selenium-webdriver selenium-chromedriver
PlajePariuri = driver.find_elements_by_xpath("//ul[@class='KambiBC-list-view__column']")
for items in PlajePariuri:
NumePlaje = items.find_element_by_xpath("//li/header/h2")
print (NumePlaje.text)
try:
element_present = EC.presence_of_element_located((By.CLASS_NAME, 'KambiBC-event-result__score-list'))
WebDriverWait(driver, 4).until(element_present)
except TimeoutException:
print ('Timed out waiting for page to load')
event = driver.find_elements_by_class_name('KambiBC-event-item KambiBC-event-item--type-match')
for items in event:
link = items.find_element_by_class_name('KambiBC-event-item__link')
scoruri = items.find_element_by_class_name('KambiBC-event-item__score-container')
scor1 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[1]")
scor2 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[2]")
print (scor1.text)
print (scor2.text)`-
`
if scor1.text == '0' and scor2.text == '0':
link.click()
time.sleep(3)
How to replace the above code with the code below
code for like post Instagram feed
<span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span>
I want to get Instagram posts on the home page
If you have an idea, please guide me
One of the problems is that all posts have a static code
Only their peers are not liked or liked
I want to define a loop which classes to find a name and order them to click
python-3.x selenium-webdriver selenium-chromedriver
python-3.x selenium-webdriver selenium-chromedriver
edited Nov 17 '18 at 4:38
jafar
asked Nov 16 '18 at 19:49
jafarjafar
12
12
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28
add a comment |
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344465%2fhow-this-change-code-to-code-me-seleniym-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344465%2fhow-this-change-code-to-code-me-seleniym-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please describe your problem more detailed. What are you going to do what you expect to be done... Also don't forget to mention aboit any side packages if you are using one
– ilyas Jumadurdyew
Nov 16 '18 at 23:28